I am trying to find the reference on how to declare typed variables in JavaScript. I know I've seen it somwhere, but I cannot find any reference for it, nor can I remember the "correct" term for it. e.g.:
var name: string = "Ian Boyd";
- I don't know if I saw it on the IEBlog, and it was in the works for the next version of Javascript
- I don't know if it's something only available in
"use strict"mode - I don't know if it's something that's been available for a while
All I know is that I saw it; and I'm not crazy.