My helper.js is as follows:
export const isOfAge = (age) => age < 21 ? false : true;
----> this works and gives result as expected.
However , as per the task - I should not use ternary operator or IF or Switch. How do I achieve this ? I am unable to get this task solved without using IF or ternary . Pls . help. I am stuck with this task.