Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8">
- <meta name="viewport" content="width=device-width">
- <title>JS Bin</title>
- </head>
- <body>
- <script id="jsbin-javascript">
- // String Manipulation
- // Strings and be manipulated through concatenation, using this
- // concatenation/arithmetic operator, +
- var a = "Good";
- var b = "job";
- var c = (a + " " + b);
- console.log(c);
- // Strings can also be manipulated with other assignment operators
- console.log(c += ", person!");
- </script>
- <script id="jsbin-source-javascript" type="text/javascript">// String Manipulation
- // Strings and be manipulated through concatenation, using this
- // concatenation/arithmetic operator, +
- var a = "Good";
- var b = "job";
- var c = (a + " " + b);
- console.log(c);
- // Strings can also be manipulated with other assignment operators
- console.log(c += ", person!");</script></body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement