{"id":267,"date":"2022-12-06T10:26:02","date_gmt":"2022-12-06T01:26:02","guid":{"rendered":"https:\/\/javascript.auctionpro.co.kr\/?page_id=267"},"modified":"2022-12-06T10:26:02","modified_gmt":"2022-12-06T01:26:02","slug":"var-let-const-%ec%b0%a8%ec%9d%b4%ec%a0%90","status":"publish","type":"page","link":"https:\/\/javascript.auctionpro.co.kr\/?page_id=267","title":{"rendered":"var, let, const \ucc28\uc774\uc810"},"content":{"rendered":"\n<h3 class=\"wp-block-heading\">Remark : javascript  \ubb38\ubc95\uc774 \ub290\uc2a8\ud55c \uac83\uc744 \ubcf4\ucda9\ud55c \uac83\uc774  let, contst \uc774\ub2e4.<\/h3>\n\n\n\n<h3 class=\"wp-block-heading\">1.var \ubcc0\uc218\ub97c \uc911\ubcf5 \uc120\uc5b8\ud574\ub3c4 \uc5d0\ub7ec\uac00 \uc5c6\ub2e4.<\/h3>\n\n\n\n<div class=\"wp-block-urvanov-syntax-highlighter-code-block\"><pre class=\"lang:js decode:true \" >\nvar name = 'seoul'\nconsole.log(name) \/\/ seoul\n\nvar name = 'busan'\nconsole.log(name) \/\/ busan\n\n<\/pre><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">2.let \ubcc0\uc218\ub97c \uc911\ubcf5 \uc120\uc5b8\ud574\ub3c4 \uc5d0\ub7ec\uac00 \ub09c\ub2e4.<\/h3>\n\n\n\n<div class=\"wp-block-urvanov-syntax-highlighter-code-block\"><pre class=\"lang:js decode:true \" >let name = 'seoul'\nconsole.log(name) \/\/ seoul\n\nlet name = 'busan'\nconsole.log(name) \/\/ Uncaught SyntaxError: Identifier 'name' has already been declared\n\n<\/pre><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">3.const \ub294 \ubcc0\uc218\uac12 \uc218\uc815\ubd88\uac00 <\/h3>\n\n\n\n<div class=\"wp-block-urvanov-syntax-highlighter-code-block\"><pre class=\"lang:js decode:true \" >const name = 'seoul'\nconsole.log(name) \/\/ seoul\n\nconst name = 'busan'\nconsole.log(name) \/\/ Uncaught SyntaxError: Identifier 'name' has already been declared\n\/\/ \ubcc0\uc218\uac12 \uc218\uc815 \ubd88\uac00\nname = 'kimhea'\nconsole.log(name)     \/\/Uncaught TypeError: Assignment to constant variable.\n<\/pre><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Remark : javascript \ubb38\ubc95\uc774 \ub290\uc2a8\ud55c \uac83\uc744 \ubcf4\ucda9\ud55c \uac83\uc774 let, contst \uc774\ub2e4. 1.var \ubcc0\uc218\ub97c \uc911\ubcf5 \uc120\uc5b8\ud574\ub3c4 \uc5d0\ub7ec\uac00 \uc5c6\ub2e4. 2.let \ubcc0\uc218\ub97c \uc911\ubcf5 \uc120\uc5b8\ud574\ub3c4 \uc5d0\ub7ec\uac00 \ub09c\ub2e4. 3.const \ub294 \ubcc0\uc218\uac12 \uc218\uc815\ubd88\uac00<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-267","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/javascript.auctionpro.co.kr\/index.php?rest_route=\/wp\/v2\/pages\/267","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/javascript.auctionpro.co.kr\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/javascript.auctionpro.co.kr\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/javascript.auctionpro.co.kr\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/javascript.auctionpro.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=267"}],"version-history":[{"count":1,"href":"https:\/\/javascript.auctionpro.co.kr\/index.php?rest_route=\/wp\/v2\/pages\/267\/revisions"}],"predecessor-version":[{"id":268,"href":"https:\/\/javascript.auctionpro.co.kr\/index.php?rest_route=\/wp\/v2\/pages\/267\/revisions\/268"}],"wp:attachment":[{"href":"https:\/\/javascript.auctionpro.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=267"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}