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



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 24 weeks 4 days 7 hours 24 mins and 27 secs ago
  • Javascript sample
    1 year 24 weeks 4 days 7 hours 24 mins and 27 secs ago
  • Java Sample
    1 year 24 weeks 4 days 7 hours 24 mins and 27 secs ago
  • Test Document
    1 year 24 weeks 4 days 7 hours 24 mins and 27 secs ago
  • PHP Sample
    1 year 24 weeks 4 days 7 hours 24 mins and 27 secs ago