string.concat()

  1. <body>
  2. <script>
  3. var str = "hello";
  4. var s = "world";
  5. console.log(str.concat(s)); //helloworld
  6. </script>
  7. </body>