how to transform a variable to string in javascript code example Example: javascript to string num.toString();