Advertisement
Guest User

Untitled

a guest
Jul 24th, 2017
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width">
  6. <title>JS Bin</title>
  7. </head>
  8. <body>
  9.  
  10. <script id="jsbin-javascript">
  11. // String Manipulation
  12.  
  13. // Strings and be manipulated through concatenation, using this
  14. // concatenation/arithmetic operator, +
  15.  
  16. var a = "Good";
  17. var b = "job";
  18. var c = (a + " " + b);
  19. console.log(c);
  20.  
  21. // Strings can also be manipulated with other assignment operators
  22.  
  23. console.log(c += ", person!");
  24. </script>
  25.  
  26.  
  27.  
  28. <script id="jsbin-source-javascript" type="text/javascript">// String Manipulation
  29.  
  30. // Strings and be manipulated through concatenation, using this
  31. // concatenation/arithmetic operator, +
  32.  
  33. var a = "Good";
  34. var b = "job";
  35. var c = (a + " " + b);
  36. console.log(c);
  37.  
  38. // Strings can also be manipulated with other assignment operators
  39.  
  40. console.log(c += ", person!");</script></body>
  41. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement