{"id":104513,"date":"2020-12-04T07:00:00","date_gmt":"2020-12-04T15:00:00","guid":{"rendered":"https:\/\/devblogs.microsoft.com\/oldnewthing\/?p=104513"},"modified":"2020-12-04T06:34:16","modified_gmt":"2020-12-04T14:34:16","slug":"20201204-00","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/oldnewthing\/20201204-00\/?p=104513","title":{"rendered":"The humor hiding behind &#8220;JavaScript error: Semicolon expected&#8221;"},"content":{"rendered":"<p>On occasion, I make a typo and get &#8220;JavaScript error: Semicolon expected&#8221; and I chuckle a little, because JavaScript was designed to <a href=\"http:\/\/www.bradoncode.com\/blog\/2015\/08\/26\/javascript-semi-colon-insertion\/\"> make semicolons optional<\/a> most of the time.<\/p>\n<p>When I made this observation, some of my friends were amused because I included the phrase &#8220;JavaScript was designed.&#8221;<\/p>\n<p><a href=\"https:\/\/web.archive.org\/web\/20070916144913\/http:\/\/wp.netscape.com\/newsref\/pr\/newsrelease67.html\"> JavaScript was announced 25 years ago today<\/a>. Happy birthday.<\/p>\n<p><b>Bonus chatter<\/b>: If you came here looking for an actual answer, here are <a href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/JavaScript\/Reference\/Errors\/Missing_semicolon_before_statement\"> some causes for the &#8220;Semicolon expected&#8221; error<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Apparently not automatic enough.<\/p>\n","protected":false},"author":1069,"featured_media":111744,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[26],"class_list":["post-104513","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-oldnewthing","tag-other"],"acf":[],"blog_post_summary":"<p>Apparently not automatic enough.<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts\/104513","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/users\/1069"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/comments?post=104513"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts\/104513\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/media\/111744"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/media?parent=104513"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/categories?post=104513"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/tags?post=104513"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}