{"id":514,"date":"2024-03-07T14:55:52","date_gmt":"2024-03-07T14:55:52","guid":{"rendered":"https:\/\/beinthecloud.biz\/sfdc\/1\/?p=514"},"modified":"2024-05-22T01:41:20","modified_gmt":"2024-05-22T01:41:20","slug":"514","status":"publish","type":"post","link":"https:\/\/beinthecloud.biz\/sfdc\/1\/2024\/03\/07\/514\/","title":{"rendered":"JavaScript  typeof"},"content":{"rendered":"\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<div class=\"jetpack-video-wrapper\"><iframe loading=\"lazy\" title=\"JavaScript typeof\" width=\"640\" height=\"360\" src=\"https:\/\/www.youtube.com\/embed\/SDlmM9RsdNs?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe><\/div>\n<\/div><\/figure>\n\n\n\n<p>In JavaScript there are 5 different data types that can contain values:<\/p>\n\n\n\n<ul>\n<li><code>string<\/code><\/li>\n\n\n\n<li><code>number<\/code><\/li>\n\n\n\n<li><code>boolean<\/code><\/li>\n\n\n\n<li><code>object<\/code><\/li>\n\n\n\n<li><code>function<\/code><\/li>\n<\/ul>\n\n\n\n<p>There are 6 types of objects:<\/p>\n\n\n\n<ul>\n<li><code>Object<\/code><\/li>\n\n\n\n<li><code>Date<\/code><\/li>\n\n\n\n<li><code>Array<\/code><\/li>\n\n\n\n<li><code>String<\/code><\/li>\n\n\n\n<li><code>Number<\/code><\/li>\n\n\n\n<li><code>Boolean<\/code><\/li>\n<\/ul>\n\n\n\n<p>And 2 data types that cannot contain values:<\/p>\n\n\n\n<ul>\n<li><code>null<\/code><\/li>\n\n\n\n<li><code>undefined<\/code><\/li>\n<\/ul>\n\n\n\n<p>JavaScript typeof <\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>============== <\/p>\n\n\n\n<p>typeof &#8220;John&#8221; \/\/ Returns &#8220;string&#8221; <\/p>\n\n\n\n<p>typeof 3.14 \/\/ Returns &#8220;number&#8221; <\/p>\n\n\n\n<p>typeof NaN \/\/ Returns &#8220;number&#8221; <\/p>\n\n\n\n<p>typeof false \/\/ Returns &#8220;boolean&#8221;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In JavaScript there are 5 different data types that can contain values: There are 6 types of objects: And 2 data types that cannot contain values: JavaScript typeof ============== typeof &#8220;John&#8221; \/\/ Returns &#8220;string&#8221; typeof 3.14 \/\/ Returns &#8220;number&#8221; typeof NaN \/\/ Returns &#8220;number&#8221; typeof false \/\/ Returns &#8220;boolean&#8221;<\/p>\n","protected":false},"author":1,"featured_media":515,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false}}},"categories":[16],"tags":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/beinthecloud.biz\/sfdc\/1\/wp-content\/uploads\/2024\/03\/How-to-use-Prettier-in-VS-Code-Code-Formatting-7.png","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/beinthecloud.biz\/sfdc\/1\/wp-json\/wp\/v2\/posts\/514"}],"collection":[{"href":"https:\/\/beinthecloud.biz\/sfdc\/1\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/beinthecloud.biz\/sfdc\/1\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/beinthecloud.biz\/sfdc\/1\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/beinthecloud.biz\/sfdc\/1\/wp-json\/wp\/v2\/comments?post=514"}],"version-history":[{"count":2,"href":"https:\/\/beinthecloud.biz\/sfdc\/1\/wp-json\/wp\/v2\/posts\/514\/revisions"}],"predecessor-version":[{"id":528,"href":"https:\/\/beinthecloud.biz\/sfdc\/1\/wp-json\/wp\/v2\/posts\/514\/revisions\/528"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/beinthecloud.biz\/sfdc\/1\/wp-json\/wp\/v2\/media\/515"}],"wp:attachment":[{"href":"https:\/\/beinthecloud.biz\/sfdc\/1\/wp-json\/wp\/v2\/media?parent=514"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/beinthecloud.biz\/sfdc\/1\/wp-json\/wp\/v2\/categories?post=514"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/beinthecloud.biz\/sfdc\/1\/wp-json\/wp\/v2\/tags?post=514"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}