Computer Science, asked by daman612, 1 year ago

Consider the following code snippet
data.sort(function(a,b),b-a);
What does the above code do?
A.Sort in the alphabetical order
B.Sort in the chronological order
C.Sort in reverse alphabetical order
D.Sort in reverse numerical order

Answers

Answered by choudhary21
2
✔✔{\texttt{Answer}}✔✔
⤵⤵⤵⤵⤵⤵⤵⤵⤵⤵⤵ ıllıllıllıllıllıllııllıllıllıllıllıllııllıllıllıllıllıllı
_______________________

<b>Typing -

D. Sort in reverse numerical order

Answer: Option D


The above code snippet sorts an array in reverse numerical order.

The answer to the above code snippet is 35. The value of “a” passed to the function is 2 and the value for “b” defined in ...


\huge\boxed{\texttt{\fcolorbox{aqua}{grey}{D}}}

_______________________ ıllıllıllıllıllıllııllıllıllıllıllıllııllıllıllıllıllıllı

<b><big>⭐⭐Hope help You⭐⭐

Answer - By Choudhary21
Answered by MoonGurl01
3
Hey mate,☺☺☺

Here is your answer...✨✨✨

➡➡➡➡➡➡➡➡➡➡➡➡➡

QUESTION:

Consider the following code snippet
data.sort(function(a,b),b-a);
What does the above code do?
A.Sort in the alphabetical order
B.Sort in the chronological order
C.Sort in reverse alphabetical order
D.Sort in reverse numerical order

ANSWER:

Option 【D】. Sort in reverse numerical order

✔✔✔✔✔✔✔✔✔✔✔✔✔

Hope this will help you...✨✨✨

Keep Asking..✌✌✌

❤❤❤ If helps you, Mark my answer as Brainliest....❤❤❤
Similar questions