Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Template strings in ES6

function hello(firstName, lastName) {
  return `Good morning ${firstName} ${lastName}! 
How are you?`
}

console.log(hello('Ranjeet', 'Andani'))
Source by softhunt.net #
 
PREVIOUS NEXT
Tagged: #Template #strings
ADD COMMENT
Topic
Name
6+9 =