Good day!!! Am trying to pass a string to a function. The string contains a variable which is defined in the function. That is, it is in the function that the value of the variable will be added to the string that is passed in function call. Something like this as an example
function myfunc(arg){
name = "John Malikberry"
alert(arg)
}
let str =`My name is ${name}`
myfunc(str)
I would like the output to be My name is John Malikberry
Thanks!!!