async function testAsync() {
return 'Hello Adam!.';
}
const any = testAsync();
console.log(any.then((msg) => {console.log(msg)}));
I am a complete beginner to JavaScript and trying to understand how async function works. I just don't understand the purpose of msg parameter and how logging that prints the return value.