Update solution.md

Fix comments
This commit is contained in:
cpxPratik 2017-06-20 17:04:33 +05:45 committed by GitHub
parent 138fb2e022
commit 3e56ae3711

View file

@ -5,11 +5,11 @@ Backticks embed the expression inside `${...}` into the string.
let name = "Ilya"; let name = "Ilya";
// the expression is a number 1 // the expression is a number 1
alert( `hello ${1}` ); // Hello, 1 alert( `hello ${1}` ); // hello 1
// the expression is a string "name" // the expression is a string "name"
alert( `hello ${"name"}` ); // Hello, name alert( `hello ${"name"}` ); // hello name
// the expression is a variable, embed it // the expression is a variable, embed it
alert( `hello ${name}` ); // Hello, Ilya alert( `hello ${name}` ); // hello Ilya
``` ```