r/JavaScriptTips • • Jul 22 '23

Can anyone help me quick ?

Post image
1 Upvotes

4 comments sorted by

View all comments

1

u/slam_the_damn_door Jul 22 '23

You can use typeof operator to check if its a string or number