new string in js code example Example: how to make a string in javascript //In Javascript, a string can be declared using "" or ''.