Closed LianJilu closed 5 years ago
Question 20. What’s the difference between typeof and instanceof? The typeof operator checks if a value belongs to one of the seven basic types: number, string, boolean, object, function, undefined or Symbol.
Question 20. What’s the difference between typeof and instanceof? The typeof operator checks if a value belongs to one of the seven basic types: number, string, boolean, object, function, undefined or Symbol.