Sublime Text
<!DOCTYPE html> <html> <body> <p id="demo1"></p> <p id="demo2"></p> <script> var score = [40, 100, 1, 6, 35, 10]; document.getElementById("demo1").innerHTML = score; score.sort(); document.getElementById("demo2").innerHTML = score; </script> </body> </html>
<!DOCTYPE html> <html> <body> <p id="demo1"></p> <p id="demo2"></p> <script> var score = [40, 100, 1, 6, 35, 10]; document.getElementById("demo1").innerHTML = score; score.sort(); document.getElementById("demo2").innerHTML = score; </script> </body> </html>