I'm a newbie at JavaScript.
In python, I can create a conditional that checks if a number is a float like this:
num = 1.5 if type(num) == float: print('is a float')
How can i do it in JavaScript? It is possible?
Aucun commentaire:
Enregistrer un commentaire