(new Date()).getTime()
:
+new Date(); // => 1256148807292 |
Having said that, more sources (such as this piece) is desperately needed, as there’s some things about javascript itself I didn’t know.
For example, it supports this
condition?expression1:expression2
It’s not always easy to find out what a language can/cant do, especially when pressed for time when a simple if/else does the same job.
]]>I noticed you twittering about this book earlier today and i guess it inspired this post 🙂 i’ll make sure i get my hands on it after this recommendation.
]]>I highly recommend this book though: Wrox – Professional JavaScript For Web Developers 2nd Edition. I urge you to read it. It changed the way I look at Javascript.
]]>