concatenate variable and string javascript in element if code example
Example 1: how to concatenate strings and variables in javascript
const helloName = name => `Hello ${name}!`
Example 2: js concat variable and string
const txt = "My name is"
console.log(`${txt} Paul`);