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