Q1 | Which of the following are basic data types in JavaScript? | |
---|
Q2 | Which method can be used to convert a string to uppercase in JavaScript? | |
---|
Q3 | Which of the following data types in JavaScript can have a value of either true or false? | |
---|
Q4 | Which of the following is a valid boolean value in JavaScript? | |
---|
Q5 | What is the value of a variable that has been declared but not assigned a value? | |
---|
Q6 | What is the data type of a variable with a value of undefined? | |
---|
Q7 | Which of the following statements about comments in JavaScript is true? | |
---|
Q8 | What is the correct syntax for an if statement in JavaScript? | |
---|
Q9 | Which of the following statements about variable declaration and assignment in JavaScript is tr... | |
---|
Q10 | What is the result of the following expression: `5 + 3 * 2 - 6 / 3`? | |
---|
Q11 | What is the value of the expression: `20 / 4 + 5 - 3 * 2`? | |
---|
Q12 | What is the result of the following expression: `10 + 5 * 2`? | |
---|
Q13 | Which operator is used to assign a value to a variable in JavaScript? | |
---|
Q14 | What is the result of the assignment expression `x = y = 5`? | |
---|
Q15 | What is the purpose of an assignment expression in JavaScript? | |
---|
Q16 | Which operator can be used to concatenate a string and a number in JavaScript? | |
---|
Q17 | Which of the following is a comparison operator in JavaScript? | |
---|
Q18 | Which of the following comparison operators in JavaScript checks if two values are not equal an... | |
---|
Q19 | Which are logical operators in JavaScript? | |
---|
Q20 | What is the result of the expression `(true && false)`? | |
---|
Q21 | Which of the following is the correct syntax for defining a function with parameters in JavaScr... | |
---|
Q22 | What is the difference between function parameters and arguments in JavaScript? | |
---|
Q23 | Which of the following is true about function parameters and arguments in JavaScript? | |
---|
Q24 | Which of the following string methods can be used to find the position of a substring within a ... | |
---|
Q25 | Which of the following methods is used to find the length of a string in JavaScript? | |
---|
Q26 | What is the purpose of the JavaScript Math.round() function? | |
---|
Q27 | What is the output of the following code?
```javascript
console.log(Math.floor(4.7));
``` | |
---|
Q28 | Which of the following functions allows you to round a number to the nearest whole number in Ja... | |
---|
Q29 | What is the purpose of the Math.max() function in JavaScript? | |
---|
Q30 | Which keyword is used to define a function in JavaScript? | |
---|
Q31 | Which of the following correctly declares and initializes an array in JavaScript? | |
---|
Q32 | Which method returns the current date and time? | |
---|