! a string in javascript code example Example 1: js string String(thing) Example 2: JavaScript Strings var x = "SAMER";