javascript as string[] code example Example 1: javascript to string num.toString(); Example 2: jquery cast to string value.toString() String(value) value + ""