The text below is selected, press Ctrl+C to copy to your clipboard. (⌘+C on Mac) No line numbers will be copied.
Guest
Javascript sample
By Guest on 9th July 2023 10:54:36 AM | Syntax: JAVASCRIPT | Views: 149



New paste | Download | Show/Hide line no. | Copy text to clipboard
  1. <!DOCTYPE html>
  2. <html>
  3. <body>
  4.  
  5. <h2>JavaScript Expressions</h2>
  6.  
  7. <p>Expressions compute to values.</p>
  8.  
  9. <p id="demo"></p>
  10.  
  11. <script>
  12. document.getElementById("demo").innerHTML = "John" + " "  + "Doe";
  13. </script>
  14.  
  15. </body>
  16. </html>



  • Recent Pastes