node js change no to string code example Example 1: javascript to string num.toString(); Example 2: convert nuber into string react js var foo = 45; var bar = '' + foo;