Question: plz answer all 4 question. plz don't take this assignment if you don't know the answer, don't submit wrong answer. thanks in advance. Question 7

plz answer all 4 question. plz don't take this assignment if you don't know the answer, don't submit wrong answer.
thanks in advance.  plz answer all 4 question. plz don't take this assignment if
you don't know the answer, don't submit wrong answer. thanks in advance.
Question 7 This code gives you a loop-free way to do what?
var numbers [10,74,978, 27,9,19]; numbers. sort(function(a,b){return b - a}); alert(numbers[@]); Select 2
that apply. Find the largest number in an array Return the largest

Question 7 This code gives you a loop-free way to do what? var numbers [10,74,978, 27,9,19]; numbers. sort(function(a,b){return b - a}); alert(numbers[@]); Select 2 that apply. Find the largest number in an array Return the largest number from a list of parameters Sort the numbers within the array in place, in ascending order Alert the smallest value in an array Find the smallest object in a string Question 8 The function isStoreOpen returns: true if a store is open false if it isn't These are the conditions that determine whether or not the store is open: The store is never open in the fall (season is infall . During the week, the store is open at any hour between 9am ( 9 ) and Spm (17) The store is open from 10am ( 10 ) to 2pm ( 14 )on Saturday . The store is closed on Sunday Which of the following code blocks does this correctly? Select the best answer. 9 hour (17) isStoreOpen - function(hour, day, season) { eturn ( (day - Saturday" && day ! "Sunday" && hour (day == "Saturday" && hour >- 10 && hour - 9 && hour - 10 && hour = 988 hour = 10 88 hour 9 48 hour = 10 && hour (14) var isStoreOpen = function(hour, day, season) return season == fall (day - Saturday" 88 day ! "Sunday 88 hour > (day - Saturday" && hour - 10 && hour longest.length) { console.log(longest); Www var longest=" }} Question 10 Consider the code sample below. var difference - function (x, y) { return x - y: var diff - 8; var diff - difference(9, 4); What value will the variable diff hold after this code is executed? Select the best answer 13 5 -difference(9,4)- Save & Continue

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!