Q1 | Which of the following are reserved words in JavaScript? | |
---|
Q2 | Which of the following are valid JavaScript identifiers? | |
---|
Q3 | What is the result of the following expression: 5 + "10"? | |
---|
Q4 | Which method is used to extract a specific section of a string in JavaScript? | |
---|
Q5 | What method is used to determine the length of a string in JavaScript? | |
---|
Q6 | Which of the following statements is true about the null value in JavaScript? | |
---|
Q7 | Which JavaScript function is used to convert a value to a number? | |
---|
Q8 | How can you convert a string to a number in JavaScript? | |
---|
Q9 | Which of the following statements is true about the global object in JavaScript? | |
---|
Q10 | What is the purpose of the else statement in a basic conditional statement in JavaScript? | |
---|
Q11 | Which of the following options correctly declares and assigns a value to a variable in JavaScri... | |
---|
Q12 | Select the correct relational expression that checks if the variable "num" is less than or equa... | |
---|
Q13 | Which of the following is the correct way to comment in JavaScript? | |
---|
Q14 | Which of the following is a valid JavaScript syntax? | |
---|
Q15 | Which operator is used for concatenating strings in JavaScript? | |
---|
Q16 | Which of the following symbols represents the greater than or equal to operator in JavaScript? | |
---|
Q17 | Which of the following symbols are comparison operators in JavaScript? | |
---|
Q18 | What are comparison operators used for in JavaScript? | |
---|
Q19 | What is the result of the following expression?
```
5 > 3 && 10 < 8
``` | |
---|
Q20 | Which logical operator returns true if at least one of the operands is true? | |
---|
Q21 | What is the syntax for defining a function in JavaScript? | |
---|
Q22 | What is the purpose of the "return" keyword in JavaScript? | |
---|
Q23 | What is the purpose of using default parameter values in JavaScript function declarations? | |
---|
Q24 | Which of the following is a valid JavaScript Math function? | |
---|
Q25 | What is the purpose of the JavaScript Math object? | |
---|
Q26 | Which built-in JavaScript function can be used to find the maximum value between two numbers? | |
---|
Q27 | What is the result of the Math.abs() function in JavaScript? | |
---|
Q28 | What does the Math.random() function do in JavaScript? | |
---|
Q29 | How do you determine the number of elements in an array in JavaScript? | |
---|
Q30 | Which of the following is used to display a message in the browser console? | |
---|
Q31 | How can you get the current year using JavaScript? | |
---|
Q32 | Which method returns the day of the week for a specified date in JavaScript? | |
---|