Jump to content

Recommended Posts

Posted

 

Joining takes an array and turns it into a string. Here is an example: const arr = ["first","second","third"] // add a value to add between values (it can also be a blank string) const str = arr.join(" - ") console.log(str) // "first - second - third"

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...