function sayHello (userName) {
console.log ('Hello ${userName}') ;
}
sayHello ('Mena') ;
function sayHello (userName) {
console.log ('Hello ${userName}') ;
}
sayHello ('mena') ;
// i expected to show say ( Hello Mena ) in the console //
You need to use backticks(`) instead of (').
Example:
function sayHello (userName) {
console.log (`Hello ${userName}`);
}