Home

JavaScript data types

Open the developer console to see the result


console.log("typeof nr:","number"),console.log("typeof str:","string"),console.log("typeof bool:","boolean"),console.log("typeof arr:",typeof["red","green","blue"]),console.log("typeof obj:",typeof{firstName:"John",lastName:"Doe"}),console.log("typeof noValue:","object"),console.log("typeof undef:","undefined");
//# sourceMappingURL=dataTypes.js.map