Run ❯
Get your
own
website
Result Size:
625 x 565
×
Change Orientation
Save Code
Change Theme, Dark/Light
Go to Spaces
<!DOCTYPE html> <html> <body> <h1>JavaScript Numbers</h1> <p>ES2021 intoduced the numeric separator (_) to make numbers more readable:</p> <p>Is 1_000_000_000 the same as 1000000000?</p> <p id="demo"></p> <script> const num1 = 1_000_000_000; const num2 = 1000000000; document.getElementById("demo").innerHTML = (num1 === num2); </script> </body> </html>