Im learning javascript using webtools of essential webbrowsers (toolset with F12). here is a show up example
function sayHello(n){
document.writeln($`Hello {n}`);
}
sayHello("Andy Anderson");
//undefined appears as a result.
I expected result as "Hello Andy Anderson" but I got an undefined
document.writeis something you'd avoid in production-ready JS code. You might be interested in looking intoconsole.logwhile you're learning, or alternatively the DOM APIs for manipulation like.appendChild.