Question: DQuestion 1 1 pts Functions can be created by using the function keyword alone or by... O creating any variable, since all variables are actually





DQuestion 1 1 pts Functions can be created by using the function keyword alone or by... O creating any variable, since all variables are actually functions in JavaScript. O writing a loop sequence, since all loops are actually functions in JavaScript. O writing a conditional block, since all conditionals are actually functions in JavaScript. O assigning a variable to be a function. DQuestion 2 1 pts The purpose of a function is... to ensure the program runs correctly produce side effects on the variables. to structure programs, to reduce repetition, and to isolate sections of code from each other. perform calculations on numeric data Question 3 1 pts Recursion is an process by which a function calls.. another function. O a function that is contained within the function declaration O itself O a function that returns no value. Question 4 1 pts In JavaScript, it is possible to have optional arguments if... O the function is recursive you create the behavior in your function declaration. the code is running in strict mode. Ousing the keyword "optional". Question 5 1 pts In JavaScript a function can be called only with the proper number of arguments only from the global scope. O only when it provides a return value. O above where it is defined in the code Question 6 1 pts If you were to require an unspecified number of arguments to be passed to a function you would need to use the keyword in the function var O arguments parameters O array Question 7 1 pts Which of the following statements are NOT true of functions in JavaScript. Functions can be assigned to variables. Functions do not have to have a return value Functions cannot be run without supplying the correct number of arguments Functions can be defined inside other functions Question 8 1 pts ECMAScript 2015 introduced the concept of default parameters so it is now possible to specify a default value in... the calling code. the function body. the function head or function signature O the return value. Question9 1 pts What kind of data can be passed into a function without changing the original value? Any data can be passed into a function and will remain unchanged. Only numbers. Primitive data types such as strings, booleans, and numbers. Only arrays and objects. Question 10 1 pts How many arguments can be passed to a function? as many as you want. 0 2 03
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
