{"id":322,"date":"2024-08-07T17:16:19","date_gmt":"2024-08-07T11:16:19","guid":{"rendered":"https:\/\/www.texeltech.com\/?p=322"},"modified":"2024-08-07T18:15:52","modified_gmt":"2024-08-07T12:15:52","slug":"what-is-var-keyword-and-what-is-doing","status":"publish","type":"post","link":"http:\/\/www.texeltech.com\/?p=322","title":{"rendered":"What is &#8220;var&#8221; keyword and what is doing"},"content":{"rendered":"\n<pre class=\"wp-block-code\"><code>var number = 10;\nvar name = \"Mamun\";\n\nSo we don't need to Identify the <strong>type<\/strong> of those variables. Is it integer of string?<\/code><\/pre>\n\n\n\n<p>var is a Keyword and it is a dynamic keyword<br>var keyword automatically identify data type as string or integer<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>var <em>customer<\/em> = <strong>new<\/strong> {Name=\"Anisur\", Address=\"Dhaka\", CustomerNo=\"C001\"};<\/code><\/pre>\n\n\n\n<p>Here we have created an <strong><em>customer<\/em><\/strong> object by using a &#8220;<strong>new<\/strong>&#8221; keyword. This customer have also some properties as- Name, Address, CustomerNo. This <strong><em>customer<\/em><\/strong> is an anonyms object which don&#8217;t have any type.<\/p>\n\n\n\n<p>var keyword can be use in locally. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>var is a Keyword and it is a dynamic keywordvar keyword automatically identify data type as string or integer Here we have created an customer object by using a &#8220;new&#8221; keyword. This customer have also&hellip;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"_links":{"self":[{"href":"http:\/\/www.texeltech.com\/index.php?rest_route=\/wp\/v2\/posts\/322"}],"collection":[{"href":"http:\/\/www.texeltech.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.texeltech.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.texeltech.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/www.texeltech.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=322"}],"version-history":[{"count":3,"href":"http:\/\/www.texeltech.com\/index.php?rest_route=\/wp\/v2\/posts\/322\/revisions"}],"predecessor-version":[{"id":325,"href":"http:\/\/www.texeltech.com\/index.php?rest_route=\/wp\/v2\/posts\/322\/revisions\/325"}],"wp:attachment":[{"href":"http:\/\/www.texeltech.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=322"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.texeltech.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=322"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.texeltech.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=322"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}