The best and fastest way to concatenate strings in JavaScript is to use the + operator. You can also use the concat() method.
Example
You can try to run the following code to concatenate strings in JavaScript
<html> <head> <title>JavaScript Concatenation</title> </head> <body> <script> var str1 = "Hello"; var str2 = "World"; var res = str1 + str2; document.write(res); </script> </body> </html>