r/JavaScriptTips • • Jul 22 '23

Can anyone help me quick ?

Post image
1 Upvotes

4 comments sorted by

View all comments

1

u/[deleted] Jul 22 '23

What do you need help with exactly? Just solving the question in general?

All you'll need is an if(condition) and this: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/typeof