variableName: datatype; ?
There's no particular need for you to do so. And I'm not sure if the answer to your question is yes or not, since JS is dynamically typed, with the ability to infer the type of your fields, and I've not seen explicit types stated in JS before.
I just tried it. Can't do it.
Обсуждают сегодня