What Does The Following Javascript Code Snippet Dop Pre #242
What does the following JavaScript code snippet do?</p> <pre><code class="language-javascript"> data.sort(function(a,b),b-a); </code></pre>
This multiple choice question (MCQ) is related to the book/course gs gs106 Javascript. It can also be found in gs gs106 Classes and Modules - JavaScript Shorthand Functions and Multiple Catch Clauses - Quiz No.1.
What does the following JavaScript code snippet do?
data.sort(function(a,b),b-a);
Sort in the alphabetical order
Sort in the chronological order
Sort in reverse alphabetical order
Sort in reverse numerical order
Similar question(s) are as followings:
Online Quizzes of gs106 Javascript
Graphics and Rendering in JavaScript - Scripted Media - Quiz No.1
gs gs106 Javascript
Online Quizzes