How to print string in JavaScript

2 Answers

0 votes
console.log('JavaScript Programming');


  
    
    
/*
run:
    
"JavaScript Programming"
    
*/

  

 



answered May 30, 2021 by avibootz
0 votes
const s = "JavaScript Programming";

console.log(s);


  
    
    
/*
run:
    
"JavaScript Programming"
    
*/

 



answered May 30, 2021 by avibootz
...