1. Which of the following sorts array in a descending order? Numbers = [ 7, 23, 6, 74]; Numbers.sort(function(a,b) {retu

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899604
Joined: Mon Aug 02, 2021 8:13 am

1. Which of the following sorts array in a descending order? Numbers = [ 7, 23, 6, 74]; Numbers.sort(function(a,b) {retu

Post by answerhappygod »

1. Which of the following sorts array in a descending
order?
Numbers = [ 7, 23, 6, 74];
Numbers.sort(function(a,b) {return a-b})
Numbers.sort(function(a,b) {return b-a})
None of the above
2. A JavaScript variable name must begin with a $ sign.
3. What JavaScript method can be used to send a form for
validation prior to submitting it?
onClick
onsubmit
onload
None of the above
4. Which of the following can be used to return more than one
value from a function in JavaScript?
Array
String
Integer
None of the above
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply