Hackerss.com

Hackerss.com is a community of amazing hackers

Hackerss is a community for developers, data scientitst, ethical hackers, hardware enthusiasts or any person that want to learn / share their knowledge of any aspect of digital technology.

Create account Log in
hackerss
hackerss

Posted on

Javascript Concatenate two strings


//function to concatenate two strings
function concatenateStrings(a, b) {
  // return the concatenation of a and b
  return a + b;
}

//example
const result = concatenateStrings("Hello", "World");

//output
console.log(result); //HelloWorld


Enter fullscreen mode Exit fullscreen mode

Top comments (0)