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: 393



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
  • Test.php
    1 year 12 weeks 5 days 23 hours and 20 secs ago
  • Javascript sample
    1 year 12 weeks 5 days 23 hours and 20 secs ago
  • Java Sample
    1 year 12 weeks 5 days 23 hours and 20 secs ago
  • Test Document
    1 year 12 weeks 5 days 23 hours and 20 secs ago
  • PHP Sample
    1 year 12 weeks 5 days 23 hours and 20 secs ago