ganqqwerty / 123-Essential-JavaScript-Interview-Questions

JavaScript interview Questions
BSD 3-Clause "New" or "Revised" License
5.01k stars 1.18k forks source link

function is not a basic type #68

Closed LianJilu closed 5 years ago

LianJilu commented 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. image