HTML Compiler Online
Javascript Online Compiler
index.html
Change Theme
Compress code
Format code
Download Code
Clear Code
Copy Code!
RunĀ
ctrl+s or click
Output
<!Doctype html> <html lang="en"> <head> <meta charset="utf-8"> <title>Article - charCodeAt in JavaScript 2</title> </head> <body> <h2>charCodeAt in JavaScript.</h2> <p>Press <kbd>F12</kbd> to open the console and see the output of the program.</p> <script> const quote = "Learning to code is learning to create and innovate"; console.log(quote.charCodeAt(0)); // first character console.log(quote.charCodeAt(quote.length - 1));// last character </script> </body> </html>
RunĀ
x
x