I'm trying to create a ternary expression that decides what to do if the user enters a name or not. If the user enters a name — like 'Jane' — use string interpolation to log Hello, Jane! to the console. Otherwise, simply log Hello!. I don't want to hard code Jane to check for truthiness, rather be able to input any name and be able to print out the same. Any input is much appreciated.
let userName = '';
userName === true ? console.log(`Hello, ${userName}!`) : console.log('Hello!');