String concatination
// string concatination
const myName = "suraj";
const job = "full stack developer" ;
console.log("my name is " + myName + " and i am a "+ job);
// string template
console.log(`my name is ${myName} and i am a ${job}`);
// string concatination
Comments
Post a Comment