Type Check in JavaScript
Level 125 keystrokes
Uses the typeof operator to print the type of "Hi", which is "string".
JavaScript code
// typeof is an operator, not a function, so it needs no parentheses// It returns the type name as a string: "string" here, "number" for 421console.log(typeof "Hi");Output
string
Practice typing this code. Results are not recorded in the rankings.
Symbols in this code
The symbols you type in this JavaScript code and how often they appear.
"× 2;× 1.× 1(× 1)× 1