Waypoint Using typeof - GJSmith3rd/FreeCodeCamp-BootCamp GitHub Wiki
Contact me
Gilbert Joseph Smith III
Github | FreeCodeCamp | CodePen | LinkedIn | Blog/Site | E-Mail
Use the Javascript Console
You can use typeof to check the data structure, or type, of a variable.
Note that in JavaScript, arrays are technically a type of object.
console.log(typeof(""));
console.log(typeof(0));
console.log(typeof([]));
console.log(typeof({}));