VSW10 I Just Met You, and "This" is Crazy, But Here's My NaN, So Call (me) Maybe?

11/19/2014

1:45pm - 3:00pm

Level: Introductory to Intermediate

Rachel Appel

Senior Developer Evangelist

Microsoft

Discuss the top 10 common JavaScript headaches, mistakes, or quirks you just need to know as well as how you can avoid them.

JavaScript can be a passive-aggressive and fickle language that frustrates you at every turn! It lets you do things like declare variables wherever you want but doesn't tell you that it will hoist them while you're not looking. JavaScript's this keyword is anything but, and eval can turn good code to evil fast. In this session, we will discuss the top 10 common JavaScript headaches, mistakes, or quirks you just need to know as well as how you can avoid them. Learn what can trip you, like the this keyword, JavaScript scoping, evil Eval, and the use of the With statement (VB devs beware!). Alongside those gotchas is the fact that not all equality operators are created equal and how the innocent looking parseInt() causes farce parses. This session will dig into all these language quirks and more!

You will learn:

  • About JavaScript oddities
  • Common JavaScript coding mistakes
  • JavaScript efficiencies