Advertisement
728x90
javascript
1let myNumber = 100;
2
3let myString = "100";
4
5if (!typeof myNumber === "string") {
6
7console.log("It is not a string!");
8} else {
9
10console.log("It is a string!");
11}
12
13if (!typeof myString === "number") {
14
15console.log("It is not a number!");
16} else {
17
18console.log("It is a number!");
19}Choose the correct output:
A
SyntaxErrorB
It is not a string!, It is not a number!C
It is not a string!, It is a number!D
It is a string!, It is a number!Advertisement
Responsive Ad
31of86