JavaScript Basics
JavaScript Basics - Important Points
6. | What does the isNaN() function in JavaScript do? |
---|
A. Determines if a value is a number or not.
B. Determines if a value is a string or not.
C. Determines if a value is undefined or not.
D. Determines if a value is null or not.
View Answer Discuss Work SpaceAnswer: option a
Explanation:
7. | Which of the following is not a primitive data type in JavaScript? |
---|
A. string
B. number
C. boolean
D. object
View Answer Discuss Work SpaceAnswer: option d
Explanation:
8. | What does the keyword this refer to in JavaScript? |
---|
A. The global object
B. The parent object
C. The current object
D. The child object
View Answer Discuss Work SpaceAnswer: option c
Explanation:
9. | What does the delete operator do in JavaScript? |
---|
A. Deletes a variable
B. Deletes a property of an object
C. Deletes an element from an array
D. Deletes a function
View Answer Discuss Work SpaceAnswer: option b
Explanation:
10. | What is the difference between == and === in JavaScript? |
---|
A. There is no difference between == and ===.
B. == performs a strict comparison, while === performs a loose comparison.
C. === performs a strict comparison, while == performs a loose comparison.
D. == and === both perform a strict comparison.
View Answer Discuss Work SpaceAnswer: option c
Explanation: