Q1 | Which of the following is not a basic data type in JavaScript? | |
---|
Q2 | What is the result of the following expression: 5 ** 3? | |
---|
Q3 | Which of the following is a valid number in JavaScript? | |
---|
Q4 | Which method is used to replace specific characters in a string with new characters? | |
---|
Q5 | Which method is used to convert a string to lowercase in JavaScript? | |
---|
Q6 | Which of the following logical operators is used to negate a boolean value? | |
---|
Q7 | Which of the following operators is used to compare two values for equality in JavaScript? | |
---|
Q8 | What does the value "null" represent in JavaScript? | |
---|
Q9 | What is type conversion in JavaScript? | |
---|
Q10 | Which of the following methods can be used to convert a value to a string in JavaScript? | |
---|
Q11 | Which of the following statements best describes the global object in JavaScript? | |
---|
Q12 | What is the purpose of comments in JavaScript? | |
---|
Q13 | What will be the output of the following code?
```
var x = 5;
var y = 10;
if (x > y) {
... | |
---|
Q14 | Which of the following is a basic conditional statement in JavaScript? | |
---|
Q15 | What is the syntax of an if statement in JavaScript? | |
---|
Q16 | Which of the following is the correct syntax for declaring and assigning a value to a variable ... | |
---|
Q17 | Which of the following is the correct way to declare a variable without assigning a value? | |
---|
Q18 | What is the value of the following expression: `(10 - 3) / (2 * 5)`? | |
---|
Q19 | Which of the following is a relational expression in JavaScript? | |
---|
Q20 | Which of the following relational expressions will evaluate to true in JavaScript? | |
---|
Q21 | Which of the following operators is used for equality comparison in JavaScript? | |
---|
Q22 | What will be the value of `x` after the following assignment expression is evaluated: `x = 5 + ... | |
---|
Q23 | Which of the following is the correct syntax for an assignment expression in JavaScript? | |
---|
Q24 | Which operators can be used for concatenation in JavaScript? | |
---|
Q25 | What is the result of the following comparison?
`5 == '5'` | |
---|
Q26 | Which logical operator is used to check whether two expressions have different truth values? | |
---|
Q27 | Which logical operator returns true if both operands are true? | |
---|
Q28 | How do you define a function in JavaScript? | |
---|
Q29 | What happens if a function in JavaScript does not have a "return" statement? | |
---|
Q30 | What is the correct way to access an element in an array in JavaScript? | |
---|
Q31 | What is the purpose of console.log() in JavaScript? | |
---|
Q32 | Which method returns the number of milliseconds between a specified date and midnight of Januar... | |
---|