Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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. image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Databases In Networked Information Systems 6th International Workshop Dnis 2010 Aizu Wakamatsu Japan March 2010 Proceedings Lncs 5999

Authors: Shinji Kikuchi ,Shelly Sachdeva ,Subhash Bhalla

2010th Edition

3642120377, 978-3642120374

More Books

Students also viewed these Databases questions

Question

Prepare a short profile of Henry words worth Longfellow?

Answered: 1 week ago

Question

What is RAM as far as telecommunication is concerned?

Answered: 1 week ago

Question

Question 1: What is reproductive system? Question 2: What is Semen?

Answered: 1 week ago

Question

Describe the sources of long term financing.

Answered: 1 week ago

Question

Understand the different approaches to job design. page 167

Answered: 1 week ago