Q1 | Which of the following is the correct way to invoke a function in JavaScript? | |
---|
Q2 | Which of the following is the correct way to define a `function` in JavaScript? | |
---|
Q3 | What is an `anonymous function` in JavaScript? | |
---|
Q4 | Which of the following statements about `anonymous functions` in JavaScript is true? | |
---|
Q5 | Which Math function in JavaScript returns the value of a base raised to the power of an exponen... | |
---|
Q6 | Which of the following statements about the `Math.floor()` function in JavaScript is true? | |
---|
Q7 | What does the `Math.max()` function do in JavaScript? | |
---|
Q8 | How to find the maximum value between two variables, `num1` and `num2`, using the `Math.max()` ... | |
---|
Q9 | Which of the following is true about the `Math.round()` function in JavaScript? | |
---|
Q10 | What does the `Math.random()` function in JavaScript do? | |
---|
Q11 | Which of the following expressions generates a random number between 1 and 10? | |
---|
Q12 | What does the `Math.ceil()` function return when given a negative number? | |
---|
Q13 | Which JavaScript String method is used to combine the text of two or more strings and return a ... | |
---|
Q14 | Which JavaScript String method is used to find the index of a specified value within a string a... | |
---|
Q15 | Which of the following is a function method that creates another function in JavaScript? | |
---|
Q16 | Which of the following function methods is used to determine the number of arguments passed int... | |
---|
Q17 | What is the purpose of the `name` property of a function in JavaScript? | |
---|
Q18 | Which of the following is a built-in property of JavaScript functions? | |
---|
Q19 | What is the purpose of the `length` property of a JavaScript function? | |
---|
Q20 | Which property of a JavaScript function returns the name of the function? | |
---|
Q21 | How can you create a namespace in JavaScript using functions? | |
---|
Q22 | What is the purpose of using functions as namespaces in JavaScript? | |
---|
Q23 | In JavaScript, functions can be assigned to variables and passed as arguments to other function... | |
---|
Q24 | What is the term used to describe a function that is defined within the body of another functio... | |
---|
Q25 | What are arguments in JavaScript functions? | |
---|
Q26 | What is the purpose of using default parameters in JavaScript functions? | |
---|
Q27 | What are parameters in JavaScript functions? | |
---|
Q28 | How are default parameters defined in JavaScript functions? | |
---|
Q29 | Which keyword is used to invoke a JavaScript function? | |
---|
Q30 | What happens when the `return` keyword is used inside a JavaScript function? | |
---|
Q31 | Which of the following is NOT a valid use case for arrow functions in JavaScript? | |
---|
Q32 | What is an arrow function in JavaScript? | |
---|
Q33 | How do you define a function in JavaScript? | |
---|
Q34 | Which of the following options correctly defines a function with parameters in JavaScript? | |
---|