2. TALKS ATTENDED
• “Modern JavaScript” - K. Scott Allen
• “Just because it’s JavaScript doesn’t give you
the right to write rubbish!” – Hadi Hariri
• Mobile development with MVC4 and jQuery
Mobile – Brock Allen
9. Function scope means that all
variables and parameters
declared inside a function are
visible everywhere within the
function.
10. FUNCTION DECLARATIONS
VS FUNCTION EXPRESSIONS
Function Declaration
function functionDeclaration() {
return “I’m a function declaration”;
}
Function Expression
var functionExpression = function() {
return “I’m a function expression”;
};
15. HADI HARIRI
• “It’s just JavaScript!”
• “JavaScript is write once code – you never want to go back to
it and change it”
• “People think that JavaScript is not maintainable.”
• “People think SRP doesn’t exist in JavaScript – how can a class
have a single responsibility if there isn’t a class”
• “We care in C#, we care in Java....why not JavaScript?”
16. NEXT STEPS
• Know JavaScript better.
• Be able to write and run tests easily in Visual
Studio.
• Write real world JavaScript tests with
mocking.
• Get intellisense in Visual Studio
• Be able to run tests as part of Team City build
• Have tools which will help me improve the
17. USEFUL LINKS
• K Scott Allen’s blog - www.odetocode.com/blogs/all
• Hadi Hariri , same talk in Norway – http://vimeo.com/43536490
• Basic JavaScript blog posts – http://elegantcode.com/2011/03/24/basic-
javascript-part-12-function-hoisting
• JavaScript sketch pad – http://jsfiddle.net
• Free Book (now published by O’Reilly) based on ECMAScript version 3
http://javascriptenlightment.com/JavaScript_Enlightenment.pdf
• JavaScript performance test bed – http://jsperf.com