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>

Online Quiz 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); 

Similar question(s) are as followings:



Online Quizzes of gs106 Javascript

Choose an organization

Theme Customizer

Gaussian Texture



Gradient Background