{"id":4399,"date":"2022-12-22T10:43:37","date_gmt":"2022-12-22T10:43:37","guid":{"rendered":"https:\/\/gyanipandit.com\/programming\/?p=4399"},"modified":"2022-12-22T11:03:09","modified_gmt":"2022-12-22T11:03:09","slug":"undefined-vs-not-defined-in-javascript","status":"publish","type":"post","link":"https:\/\/gyanipandit.com\/programming\/undefined-vs-not-defined-in-javascript\/","title":{"rendered":"Undefined vs not defined in javascript"},"content":{"rendered":"<p align=\"JUSTIFY\">In this video, we are going to have a look at undefined and not defined in JavaScript. These terms might seem to be similar, but they have a very simple difference. Basically, when we are creating a variable, and not assigning any value to it, in such a situation, the type of the variable is undefined. On the other hand, not defined is when we are trying to access something (some variable or some function), that is not defined in our program. Understanding the difference between them is important at times.<\/p>\n<h2 style=\"text-align: center;\" align=\"JUSTIFY\">Undefined vs not defined in javascript with example<\/h2>\n\n\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=\"youtube-embed\" data-video_id=\"YP3WnLtcQXM\"><iframe loading=\"lazy\" title=\"Undefined vs Not Defined in Javascript\" width=\"696\" height=\"392\" src=\"https:\/\/www.youtube.com\/embed\/YP3WnLtcQXM?feature=oembed&#038;enablejsapi=1\" 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>\u00a0I hope you find this video \u2018Celsius to Fahrenheit Program in Java\u2019 helpful for you&#8230;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this video, we are going to have a look at undefined and not defined in JavaScript. These terms might seem to be similar, but they have a very simple difference. Basically, when we are creating a variable, and not assigning any value to it, in such a situation, the type of the variable is [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":4401,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[63],"tags":[14,66],"class_list":{"0":"post-4399","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-javascript","8":"tag-javascript","9":"tag-undefined-vs-not-defined-in-javascript"},"_links":{"self":[{"href":"https:\/\/gyanipandit.com\/programming\/wp-json\/wp\/v2\/posts\/4399","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/gyanipandit.com\/programming\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/gyanipandit.com\/programming\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/gyanipandit.com\/programming\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/gyanipandit.com\/programming\/wp-json\/wp\/v2\/comments?post=4399"}],"version-history":[{"count":2,"href":"https:\/\/gyanipandit.com\/programming\/wp-json\/wp\/v2\/posts\/4399\/revisions"}],"predecessor-version":[{"id":4412,"href":"https:\/\/gyanipandit.com\/programming\/wp-json\/wp\/v2\/posts\/4399\/revisions\/4412"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/gyanipandit.com\/programming\/wp-json\/wp\/v2\/media\/4401"}],"wp:attachment":[{"href":"https:\/\/gyanipandit.com\/programming\/wp-json\/wp\/v2\/media?parent=4399"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/gyanipandit.com\/programming\/wp-json\/wp\/v2\/categories?post=4399"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/gyanipandit.com\/programming\/wp-json\/wp\/v2\/tags?post=4399"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}