Use a Ternary Operator Instead of if/else
Refactor the code to use a ternary expression to assign the correct value to
status
: assign 'Adult' if age
is 18 or more, otherwise assign 'Minor'.Premium
JavaScript
Console