{"id":120,"date":"2023-11-21T19:36:51","date_gmt":"2023-11-21T19:36:51","guid":{"rendered":"http:\/\/fem.flywheelsites.com\/?p=120"},"modified":"2024-12-10T15:29:17","modified_gmt":"2024-12-10T20:29:17","slug":"numeric-separators","status":"publish","type":"post","link":"https:\/\/frontendmasters.com\/blog\/numeric-separators\/","title":{"rendered":"Numeric Separators"},"content":{"rendered":"\n<p>Did you know you can declare number values in JavaScript with notation like <code>1_000_000<\/code>? This is especially useful for large numbers where you might be used to seeing commas within the number to help readability (but commas themselves are invalid). It&#8217;s perhaps even more useful when declaring numbers in <a href=\"https:\/\/v8.dev\/features\/numeric-separators\">binary, hexadecimal, or BigInt notation<\/a>. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>Did you know you can declare number values in JavaScript with notation like 1_000_000? This is especially useful for large numbers where you might be used to seeing commas within the number to help readability (but commas themselves are invalid). It&#8217;s perhaps even more useful when declaring numbers in binary, hexadecimal, or BigInt notation.<\/p>\n","protected":false},"author":1,"featured_media":4784,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"sig_custom_text":"","sig_image_type":"featured-image","sig_custom_image":0,"sig_is_disabled":false,"inline_featured_image":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[29],"tags":[3,30],"class_list":["post-120","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-the-beat","tag-javascript","tag-numbers"],"acf":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/frontendmasters.com\/blog\/wp-content\/uploads\/2023\/11\/dashes-featured-1.jpg?fit=1000%2C500&ssl=1","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/frontendmasters.com\/blog\/wp-json\/wp\/v2\/posts\/120","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/frontendmasters.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/frontendmasters.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/frontendmasters.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/frontendmasters.com\/blog\/wp-json\/wp\/v2\/comments?post=120"}],"version-history":[{"count":2,"href":"https:\/\/frontendmasters.com\/blog\/wp-json\/wp\/v2\/posts\/120\/revisions"}],"predecessor-version":[{"id":184,"href":"https:\/\/frontendmasters.com\/blog\/wp-json\/wp\/v2\/posts\/120\/revisions\/184"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/frontendmasters.com\/blog\/wp-json\/wp\/v2\/media\/4784"}],"wp:attachment":[{"href":"https:\/\/frontendmasters.com\/blog\/wp-json\/wp\/v2\/media?parent=120"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/frontendmasters.com\/blog\/wp-json\/wp\/v2\/categories?post=120"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/frontendmasters.com\/blog\/wp-json\/wp\/v2\/tags?post=120"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}