JavaScript Fundamentals

767 views
697 views

Published on

JavaScript is being popular day by day with the improvement of Ajax and Single Page Applications. It's the language of all web browsers. It's important to understand the basics of any programming language before use frameworks and libraries of that language. Then you can write efficient and more manageable codes easily. This slide set is prepared to give you a better understanding on JavaScript basics. Wish you all the best for better programming.

Published in: Technology
1 Comment
1 Like
Statistics
Notes
No Downloads
Views
Total views
767
On SlideShare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
28
Comments
1
Likes
1
Embeds 0
No embeds

No notes for slide
  • I think this should have been the very first session of these tech talk series. Because without these fundamentals, there is no use of script frameworks. Your code is definitely messed up. You might think, Javascript is also like Java, C# or PHP. Not at all. Javascript is Javascript. It has both functional and OOP features. And it’s a scripting language, not a pre-compiled language like C#.
  • Just write $ = undefined; at the end of last script file. ORJust add an empty comment ( // ) line at the end of any script library. Bundling is finished! :D
  • JavaScript Fundamentals

    1. 1. JavaScript FundamentalsBy Lasantha BandaraSoftware EngineerExilesoft Pvt. Ltd.-@ ExileTechTalk(2013/03/05)
    2. 2. • Became more useful with the popularity of Ajax• But adds a quite heavy load to the browser (Demo)
    3. 3. Variables• Declared with ‘var’ keyword• Type is resolved at runtime.You can assign any primitive type, function or objectto a variable.• Scope of a public variable is the ‘window’ objectThat means,var a; or a; Ξ window.a; Ξ window[‘a’];• Here is a description of all the predefined objects of Javascript• Beware,This makes your variable public!
    4. 4. • You can have more OOP behavior with ‘new’ and ‘prototype’
    5. 5. • This comes only when ‘null’ is assigned asthe value (Commonly from Json with Ajax)
    6. 6. • You can assign ‘undefined’ value to a variable, if you want ;-)
    7. 7. Source : http://pluralsight.com/training/Player?author=liam-mclennan&name=jscript-fundamentals-blocks&mode=live&clip=2&course=jscript-fundamentalsAwait….JavaScript Design Patterns(http://pluralsight.com/training/Courses/TableOfContents/javascript-design-patterns)

    ×