Template literals regarding dobut

let myWords= I'm ${myName} ${mySurName} and i scored ${20+20} that is code when we can print or run it can not so any answer why .
please tell me where i can miss something.

1 Like

@thakurvipinsingh2711 ,

Try this slight modification in your code.

let myName= "John"
    let mySurName="Doe"
    let mark=80

let myWords= `I'm ${myName} ${mySurName} and I scored ${mark}`
console.log(myWords)