String.valueOf valueOf Description String.valueOf() Return values string primitive. Examples Example #1 – valueOf example Runconsole.log('Hello World'.valueOf()); // Hello World External references Mozilla: String.valueOf method