SlideShare a Scribd company logo
JavaScript For Developers
Parveen Soni
Git Profile: parveen-rx
About Me
• Passionate for programming
• Full stack developer since 2014
• Want to know more about me:
• https://about.me/parveen.soni
• https://in.linkedin.com/in/parveensoni
• Example File:
Agenda
• Basics of JS
• Writing efficient code
• Browser Storage (Local storage, Session Storage, and IndexedDB)
• JS constraints for Internet Explorer
• Polyfill, Modernizr and Underscore
• JavaScriptTemplating
• Chrome DevTools / Mozilla Firebug
• Measuring and debugging code Performance
• Service worker and offline web application
• Cross browser testing and Feature Automation
• Useful links and references
How InternetWorks
Basics of JavaScript
• Invented by Brendan Eich, co-founder of the Mozilla project
• Dynamic Programming language (Divide and conquer)
• Control the behavior of web pages -dynamic interactivity on websites
(example1)
• Case sensitive
var myVariable != var myvariable
• JavaScript Hoisting concept (example2)
• The "use strict" Directive (example3, example31)
• Common illusions (example4)
Writing efficient code
• Understand that JS works on lookup things(example5)
• Cost of Object (example6)
• Cache your objects (example7)
• Use minimum global variable and Cache function pointers(example8)
• Miscellaneous Items (example9)
• Some best practices (example10)
Browser Storage
• Local Storage (example 14)
• Session Storage
• IndexedDB andWeb SQL (discuss in another session)
JS Constraints for Internet Explorer
• Use minimum DOM element (use defer rendering of templates)
• Less complex table structure
• Form Object Support (very less support only one method – add)
• Use minimum global variable and Cache function pointers
• person = {firstName:"John", lastName:"Doe", age:46,}
//Trailing commas in object and array definition are legal in ECMAScript
points = [40, 100, 1, 5, 25, 10,];
//above code will fails for IE 8 or less
Polyfill, Modernizr and Underscore
• Polyfill.js redefine the functions which are not supported by browser like IE
(example11)
• Modernizr is used to detect browser features and it also provide Polyfill
(example11)
• Underscore JS is based on ECMA 5 standards (2009) which are widely
supported by almost all browsers. (example11)
JavaScriptTemplating
• Many JavaScript Lib are used to create view template in HTML
• Example: Handlebars, Mustache and Dust JS
• Working example:
(example 12)
Chrome DevTools/Firebug
• Many feature available in Chrome dev tools
• Performance Measurement using Chrome dev tools
• Service Worker and Offline application (large topic – discuss another time)
Cross Browser testing and Automation
• Many paid tools available to cross check all feature in different version of
browser
• Turbo.net  offline and cloud version (provide URL and get result)
• Automation example
ThankYou

More Related Content

PPTX
After the LAMP, it's time to get MEAN
PPT
5 Common Mistakes You are Making on your Website
PDF
A guide to hiring a great developer to build your first app (redacted version)
PPTX
JavaOne2016 - How to Generate Customized Java 8 Code from Your Database [TUT4...
PPTX
How to JavaOne 2016 - Generate Customized Java 8 Code from Your Database [TUT...
PPTX
Tech io spa_angularjs_20130814_v0.9.5
PDF
Presentation 1 Web--dev
PPTX
Untying the Knots of Web Dev with Internet Explorer
After the LAMP, it's time to get MEAN
5 Common Mistakes You are Making on your Website
A guide to hiring a great developer to build your first app (redacted version)
JavaOne2016 - How to Generate Customized Java 8 Code from Your Database [TUT4...
How to JavaOne 2016 - Generate Customized Java 8 Code from Your Database [TUT...
Tech io spa_angularjs_20130814_v0.9.5
Presentation 1 Web--dev
Untying the Knots of Web Dev with Internet Explorer

Similar to JS - The Unknown Basics.pptx (20)

PPTX
An overview of JavaScript
PDF
JavaScript debugging diagnostic web tools and firefox
PPTX
Welcome to React.pptx
KEY
Rich Internet Applications and Flex - 1
PDF
Intro JavaScript
PDF
Building Real-World Dojo Web Applications
PDF
Structured web apps
PDF
SGCE 2015 REST APIs
PDF
APIs distribuidos con alta escalabilidad
PPTX
Edy Dawson Notes on SF HTML5 Dev Conf
PDF
8. Software Development Security
PPTX
Frameworks Galore: A Pragmatic Review
PDF
CISSP Prep: Ch 9. Software Development Security
PPTX
Silicon Valley JUG - How to generate customized java 8 code from your database
PPTX
How to generate customized java 8 code from your database
PPT
The things we found in your website
PDF
8. Software Development Security
PPTX
AngularJS - Architecture decisions in a large project 
PPTX
Web dev-101
PDF
A 20 minute introduction to AngularJS for XPage developers
An overview of JavaScript
JavaScript debugging diagnostic web tools and firefox
Welcome to React.pptx
Rich Internet Applications and Flex - 1
Intro JavaScript
Building Real-World Dojo Web Applications
Structured web apps
SGCE 2015 REST APIs
APIs distribuidos con alta escalabilidad
Edy Dawson Notes on SF HTML5 Dev Conf
8. Software Development Security
Frameworks Galore: A Pragmatic Review
CISSP Prep: Ch 9. Software Development Security
Silicon Valley JUG - How to generate customized java 8 code from your database
How to generate customized java 8 code from your database
The things we found in your website
8. Software Development Security
AngularJS - Architecture decisions in a large project 
Web dev-101
A 20 minute introduction to AngularJS for XPage developers
Ad

Recently uploaded (20)

PPTX
MYSQL Presentation for SQL database connectivity
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PPT
Teaching material agriculture food technology
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PDF
Review of recent advances in non-invasive hemoglobin estimation
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
DOCX
The AUB Centre for AI in Media Proposal.docx
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PPTX
sap open course for s4hana steps from ECC to s4
PPTX
Programs and apps: productivity, graphics, security and other tools
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PPTX
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PPTX
Big Data Technologies - Introduction.pptx
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
MYSQL Presentation for SQL database connectivity
Digital-Transformation-Roadmap-for-Companies.pptx
Teaching material agriculture food technology
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
MIND Revenue Release Quarter 2 2025 Press Release
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
Review of recent advances in non-invasive hemoglobin estimation
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
The AUB Centre for AI in Media Proposal.docx
Understanding_Digital_Forensics_Presentation.pptx
sap open course for s4hana steps from ECC to s4
Programs and apps: productivity, graphics, security and other tools
Advanced methodologies resolving dimensionality complications for autism neur...
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
Dropbox Q2 2025 Financial Results & Investor Presentation
20250228 LYD VKU AI Blended-Learning.pptx
Big Data Technologies - Introduction.pptx
Unlocking AI with Model Context Protocol (MCP)
Chapter 3 Spatial Domain Image Processing.pdf
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
Ad

JS - The Unknown Basics.pptx

  • 1. JavaScript For Developers Parveen Soni Git Profile: parveen-rx
  • 2. About Me • Passionate for programming • Full stack developer since 2014 • Want to know more about me: • https://about.me/parveen.soni • https://in.linkedin.com/in/parveensoni • Example File:
  • 3. Agenda • Basics of JS • Writing efficient code • Browser Storage (Local storage, Session Storage, and IndexedDB) • JS constraints for Internet Explorer • Polyfill, Modernizr and Underscore • JavaScriptTemplating • Chrome DevTools / Mozilla Firebug • Measuring and debugging code Performance • Service worker and offline web application • Cross browser testing and Feature Automation • Useful links and references
  • 5. Basics of JavaScript • Invented by Brendan Eich, co-founder of the Mozilla project • Dynamic Programming language (Divide and conquer) • Control the behavior of web pages -dynamic interactivity on websites (example1) • Case sensitive var myVariable != var myvariable • JavaScript Hoisting concept (example2) • The "use strict" Directive (example3, example31) • Common illusions (example4)
  • 6. Writing efficient code • Understand that JS works on lookup things(example5) • Cost of Object (example6) • Cache your objects (example7) • Use minimum global variable and Cache function pointers(example8) • Miscellaneous Items (example9) • Some best practices (example10)
  • 7. Browser Storage • Local Storage (example 14) • Session Storage • IndexedDB andWeb SQL (discuss in another session)
  • 8. JS Constraints for Internet Explorer • Use minimum DOM element (use defer rendering of templates) • Less complex table structure • Form Object Support (very less support only one method – add) • Use minimum global variable and Cache function pointers • person = {firstName:"John", lastName:"Doe", age:46,} //Trailing commas in object and array definition are legal in ECMAScript points = [40, 100, 1, 5, 25, 10,]; //above code will fails for IE 8 or less
  • 9. Polyfill, Modernizr and Underscore • Polyfill.js redefine the functions which are not supported by browser like IE (example11) • Modernizr is used to detect browser features and it also provide Polyfill (example11) • Underscore JS is based on ECMA 5 standards (2009) which are widely supported by almost all browsers. (example11)
  • 10. JavaScriptTemplating • Many JavaScript Lib are used to create view template in HTML • Example: Handlebars, Mustache and Dust JS • Working example: (example 12)
  • 11. Chrome DevTools/Firebug • Many feature available in Chrome dev tools • Performance Measurement using Chrome dev tools • Service Worker and Offline application (large topic – discuss another time)
  • 12. Cross Browser testing and Automation • Many paid tools available to cross check all feature in different version of browser • Turbo.net  offline and cloud version (provide URL and get result) • Automation example