- 1
Needed to solve this pls ASAP
1 Answer
+ 1
// Hope this code helps you
window.onload=()=>{
sayHello();
sayHello('Icon Mikky');
}
sayHello = (name) =>{
let n = name==null||name.trim()==''? "Hello there!" : `Hello, ${name}!`;
console.log(n);
};