{"id":3652,"date":"2015-04-03T18:40:07","date_gmt":"2015-04-03T18:40:07","guid":{"rendered":"http:\/\/webninjataylor.com\/library\/?p=3652"},"modified":"2015-04-03T18:40:07","modified_gmt":"2015-04-03T18:40:07","slug":"javascript-implicit-vs-explicit-coercion","status":"publish","type":"post","link":"https:\/\/webninjataylor.com\/library\/javascript-implicit-vs-explicit-coercion\/","title":{"rendered":"JavaScript Implicit vs. Explicit Coercion"},"content":{"rendered":"<ul>\n<li>Using the minus or division math operator will coerce a string into a number &#8230;\u00a0<span class=\"code\">&#8220;123&#8221;-0 = 123<\/span><\/li>\n<li>Never\u00a0&#8220;==&#8221; to true or false, always &#8220;===&#8221;, because &#8220;==&#8221; will match falsy things like 0<\/li>\n<li>== allows coercion (checks value) &#8211; implicit<\/li>\n<li>=== disallows coercion (checks value and type) &#8211; explicit<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Using the minus or division math operator will coerce a string into a number &#8230;\u00a0&#8220;123&#8221;-0 = 123 Never\u00a0&#8220;==&#8221; to true or false, always &#8220;===&#8221;, because &#8220;==&#8221; will match falsy things like 0 == allows coercion (checks value) &#8211; implicit === disallows coercion (checks value and type) &#8211; explicit<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[144],"tags":[9],"class_list":["post-3652","post","type-post","status-publish","format-standard","hentry","category-web-shots","tag-javascript"],"_links":{"self":[{"href":"https:\/\/webninjataylor.com\/library\/wp-json\/wp\/v2\/posts\/3652","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webninjataylor.com\/library\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webninjataylor.com\/library\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webninjataylor.com\/library\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/webninjataylor.com\/library\/wp-json\/wp\/v2\/comments?post=3652"}],"version-history":[{"count":2,"href":"https:\/\/webninjataylor.com\/library\/wp-json\/wp\/v2\/posts\/3652\/revisions"}],"predecessor-version":[{"id":3655,"href":"https:\/\/webninjataylor.com\/library\/wp-json\/wp\/v2\/posts\/3652\/revisions\/3655"}],"wp:attachment":[{"href":"https:\/\/webninjataylor.com\/library\/wp-json\/wp\/v2\/media?parent=3652"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webninjataylor.com\/library\/wp-json\/wp\/v2\/categories?post=3652"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webninjataylor.com\/library\/wp-json\/wp\/v2\/tags?post=3652"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}