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