How to concatenate two numbers in Node.js

1 Answer

0 votes
const num1 = 2;
const num2 = 89;

const concatenate = '' + num1 + num2;

console.log(concatenate); 
 
 
     
     
/*
run:
     
289
     
*/

 



answered Jun 19, 2022 by avibootz

Related questions

1 answer 127 views
1 answer 128 views
2 answers 184 views
1 answer 218 views
2 answers 137 views
...