{"id":835,"date":"2021-12-10T03:04:22","date_gmt":"2021-12-10T03:04:22","guid":{"rendered":"https:\/\/lucyestela.com\/dev\/?p=835"},"modified":"2021-12-10T03:04:22","modified_gmt":"2021-12-10T03:04:22","slug":"es6-additions","status":"publish","type":"post","link":"https:\/\/lucyestela.com\/dev\/blog\/es6-additions\/","title":{"rendered":"ES6 additions"},"content":{"rendered":"<div class=\"boldgrid-section\">\n<div class=\"container\">\n<div class=\"row\">\n<div class=\"col-md-12 col-xs-12 col-sm-12\">\n<h3>Block Scope<\/h3>\n<p>Before ES6 (2015), JavaScript had only&nbsp;<b>Global Scope<\/b>&nbsp;and&nbsp;<b>Function Scope<\/b>.<\/div>\n<\/div>\n<\/div>\n<div><\/div>\n<div class=\"container\">\n<div class=\"row\">\n<div><\/div>\n<div><\/div>\n<div class=\"col-md-12 col-xs-12 col-sm-12\">ES6 introduced two important new JavaScript keywords:&nbsp;<code class=\"w3-codespan\">let<\/code>&nbsp;and&nbsp;<code class=\"w3-codespan\">const<\/code>.<\/div>\n<\/div>\n<div><\/div>\n<div class=\"row\">\n<div class=\"col-md-12 col-xs-12 col-sm-12\">These two keywords provide&nbsp;<strong>Block Scope<\/strong>&nbsp;in JavaScript.Variables declared inside a { } block cannot be accessed from outside the block:<\/div>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Block Scope Before ES6 (2015), JavaScript had only&nbsp;Global Scope&nbsp;and&nbsp;Function Scope. ES6 introduced two important new JavaScript keywords:&nbsp;let&nbsp;and&nbsp;const. These two keywords provide&nbsp;Block Scope&nbsp;in JavaScript.Variables declared inside a { } block cannot be accessed from outside the block:<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"bgseo_title":"","bgseo_description":"","bgseo_robots_index":"index","bgseo_robots_follow":"follow","footnotes":""},"categories":[3],"tags":[111],"class_list":["post-835","post","type-post","status-publish","format-standard","hentry","category-blog","tag-block-scope"],"_links":{"self":[{"href":"https:\/\/lucyestela.com\/dev\/wp-json\/wp\/v2\/posts\/835","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lucyestela.com\/dev\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lucyestela.com\/dev\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lucyestela.com\/dev\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/lucyestela.com\/dev\/wp-json\/wp\/v2\/comments?post=835"}],"version-history":[{"count":1,"href":"https:\/\/lucyestela.com\/dev\/wp-json\/wp\/v2\/posts\/835\/revisions"}],"predecessor-version":[{"id":836,"href":"https:\/\/lucyestela.com\/dev\/wp-json\/wp\/v2\/posts\/835\/revisions\/836"}],"wp:attachment":[{"href":"https:\/\/lucyestela.com\/dev\/wp-json\/wp\/v2\/media?parent=835"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lucyestela.com\/dev\/wp-json\/wp\/v2\/categories?post=835"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lucyestela.com\/dev\/wp-json\/wp\/v2\/tags?post=835"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}