convert variables to strings javascript code example Example 1: javascript to string num.toString(); Example 2: js variable to string `String text ${expression}`