[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-seo-697391-105":3,"detail-sidebar-cat-0-en-105":80,"doc-detail-697391-en":130,"doc-similar-697391":162},{"code":4,"msg":5,"data":6},0,"ok",{"site_id":7,"language":8,"slug":9,"title":10,"keywords":11,"description":12,"schema_data":13,"social_meta":73,"head_meta":75,"extra_data":77,"updated_unix":79},105,"en","learning-javascript-a-hands-on-guide-to-the-fundamentals-of-modern-javascript","Learning JavaScript - A Hands-On Guide to the Fundamentals of Modern JavaScript","","A set of front-matter endorsements and a detailed chapter-by-chapter table of contents for Learning JavaScript, focusing on practical, modern JavaScript fundamentals. The material guides readers through progressive enhancement, browser behaviors, HTTP interactions, rendering engines, DOM concepts, and accessing DOM nodes with selectors and attributes. It further covers JavaScript terminology, data storage with JSON and Web Storage, and the use of variables, functions, conditionals, loops, and event-driven user interactions, including touch events and performance considerations.",{"@graph":14,"@context":72},[15,34,55],{"@type":16,"itemListElement":17},"BreadcrumbList",[18,23,27,31],{"item":19,"name":20,"@type":21,"position":22},"https://docshare.wps.com","Home","ListItem",1,{"item":24,"name":25,"@type":21,"position":26},"https://docshare.wps.com/document/","Document",2,{"item":28,"name":29,"@type":21,"position":30},"https://docshare.wps.com/document/technology/","Technology",3,{"item":32,"name":10,"@type":21,"position":33},"https://docshare.wps.com/document/learning-javascript-a-hands-on-guide-to-the-fundamentals-of-modern-javascript/697391/",4,{"url":32,"name":10,"@type":35,"image":36,"author":41,"headline":10,"publisher":44,"fileFormat":47,"inLanguage":8,"description":12,"dateModified":48,"datePublished":49,"encodingFormat":47,"isAccessibleForFree":50,"interactionStatistic":51},"DigitalDocument",{"url":37,"@type":38,"width":39,"height":40},"https://docshare.wps.com/thumbnails/learning-javascript-a-hands-on-guide-to-the-fundamentals-of-modern-javascript/697391.png","ImageObject",300,407,{"name":42,"@type":43},"Patrick","Person",{"url":19,"name":45,"@type":46},"DocShare","Organization","application/pdf","2026-11-15","2026-11-11",true,{"@type":52,"interactionType":53,"userInteractionCount":30},"InteractionCounter",{"@type":54},"ViewAction",{"@type":56,"mainEntity":57},"FAQPage",[58,64,68],{"name":59,"@type":60,"acceptedAnswer":61},"What does the book emphasize about progressive enhancement?","Question",{"text":62,"@type":63},"It defines progressive enhancement and contrasts it with graceful degradation. The structure layer, presentation layer, and behavior layer are used to show how to add meaning and functionality step by step.","Answer",{"name":65,"@type":60,"acceptedAnswer":66},"How does the book teach JavaScript interaction with browsers and servers?",{"text":67,"@type":63},"It covers browser history and interactions using HTTP requests, discusses what JavaScript can do for rendering engines, and explains communicating with the server and storing data.",{"name":69,"@type":60,"acceptedAnswer":70},"What topics are included for working with the DOM and updating it dynamically?",{"text":71,"@type":63},"It explains the DOM tree with element, text, and attribute nodes, shows targeting by ID/tag/class and CSS selectors, and teaches how to add and remove nodes and change content.","https://schema.org",{"og:url":32,"og:type":74,"og:title":10,"og:site_name":45,"og:description":12},"article",{"robots":76,"canonical":32},"index,follow",{"doc_id":78,"site_id":7},697391,1794438282,{"code":4,"msg":81,"data":82},"success",[83,87,91,95,100,104,109,114,119,122,126],{"id":22,"doc_module":4,"doc_module_name":25,"category_name":84,"show_sort_weight":85,"slug":86},"Story & Novel",90,"story-novel",{"id":26,"doc_module":4,"doc_module_name":25,"category_name":88,"show_sort_weight":89,"slug":90},"Literature",80,"literature",{"id":33,"doc_module":4,"doc_module_name":25,"category_name":92,"show_sort_weight":93,"slug":94},"Exam",70,"exam",{"id":96,"doc_module":4,"doc_module_name":25,"category_name":97,"show_sort_weight":98,"slug":99},5,"Comic",60,"comic",{"id":101,"doc_module":4,"doc_module_name":25,"category_name":29,"show_sort_weight":102,"slug":103},6,50,"technology",{"id":105,"doc_module":4,"doc_module_name":25,"category_name":106,"show_sort_weight":107,"slug":108},7,"Healthcare",40,"healthcare",{"id":110,"doc_module":4,"doc_module_name":25,"category_name":111,"show_sort_weight":112,"slug":113},8,"Research & Report",30,"research-report",{"id":115,"doc_module":4,"doc_module_name":25,"category_name":116,"show_sort_weight":117,"slug":118},9,"Religion & Spirituality",20,"religion-spirituality",{"id":117,"doc_module":4,"doc_module_name":25,"category_name":120,"show_sort_weight":117,"slug":121},"World Cup","world-cup",{"id":123,"doc_module":4,"doc_module_name":25,"category_name":124,"show_sort_weight":123,"slug":125},10,"Lifestyle","lifestyle",{"id":127,"doc_module":4,"doc_module_name":25,"category_name":128,"show_sort_weight":96,"slug":129},19,"General","general",{"code":4,"msg":81,"data":131},{"doc_id":78,"user_id":132,"nickname":42,"user_avatar":133,"doc_module":4,"category_id":101,"category_name":29,"doc_title":10,"doc_description":12,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":30,"is_deleted":4,"is_public":22,"is_downloadable":22,"audit_status":22,"page_count":139,"language":140,"language_code":8,"site_id":7,"html_lang":8,"table_of_contents":141,"faqs":142,"seo_title":143,"seo_description":12,"update_tm":79,"read_time":144,"preview_page_count":33,"preview_urls":145},549758146520,"https://ap-avatar.wpscdn.com/avatar/80002397d8c0411e94?_k=1775819394049821470","Praise for Learning JavaScript  \n“Between modern web interfaces, server side technologies, and HTML5 games,  \nJavaScript has never been a more important or versatile tool. To anyone just starting  \nout with JavaScript or looking to deepen their knowledge of the practical core of the  \nlanguage, I would highly recommend Learning JavaScript.”  \n—Evan Burchard, Independent Web Developer  \n“Although I’ve read a couple of books about JavaScript before, as a backend developer,  \nI was thrilled to see Tim Wright’s Learning JavaScript. The nuances of progressive  \nenhancement versus graceful degradation are finally explained in a manner that  \nsomeone new to front-end coding can understand. Bravo, Tim.”  \n—Joe Devon, Cofounder, [StartupDevs.com](StartupDevs.com)  \n“Tim Wright has written a delightfully practical book for the novice front-end  \ndeveloper who wants to learn JavaScript. This book’s strength is in providing a good  \nintroduction to JavaScript while also illustrating the context of when and where it  \nshould be used.”  \n—R. S. Doiel, Senior Software Engineer, USC Web Services  \n“Learning JavaScript is a great introduction into modern JavaScript development. From  \ncovering the history to its exciting future, Learning JavaScript equips the novice developer  \nto practical application in the workforce. I wish this book came along when I was a novice!”  \n—Hillisha Haygood, Senior Web Developer, Sporting News  \n“Tim presents invaluable techniques for writing JavaScript with progressive  \nenhancement at the forefront. If you are new to JavaScript then this book will prove  \nto be a great asset in your learning. Covering all the basics and then right through to  \ntouch events, AJAX, and HTML5 APIs, the examples are clear and easy to follow. Using  \nthis book, you will learn when and how to use JavaScript to great effect.”  \n—Tom Leadbetter, Freelance Web Designer  \n“Learning JavaScript is valuable for both new and veteran developers. It is great for new  \ndevelopers because it is easy to read and provides a step-by-step process to becoming  \ngreat at JavaScript. Veteran developers will be reminded of many of the best practices  \nthey have already forgotten.”  \n—Christopher Swenor, Manager of Technology, zMags  \nLearning JavaScript: A Hands-On Guide to the Fundamentals of Modern JavaScript  \nTable of Contents  \nTable of Contents Introduction  \nChapter 1: Progressive Enhancement Defining Progressive Enhancement  \nHistory  \nPurpose  \nAccessibility  \nReusability  \nProgressive Enhancement Versus Graceful Degradation Structure Layer  \nAdding More Meaning with HTML5 Presentation Layer  \nInline CSS  \nLinking Up Your Stylesheet Behavior Layer  \nInline JavaScript  \nEmbedded JavaScript  \nExternal and Unobtrusive JavaScript Benefits of Progressive Enhancement  \nPerformance  \nBuilding for the Future  \nTable of Contents  \nThe Touch Interface  \nFinal Words on Progressive Enhancement Summary  \nExercises  \nChapter 2: JavaScript in the Browser A Peoples History of JavaScript  \nOrigins  \nProgressive Enhancement  \nThe Behavior Layer  \nMoving Past Today  \nBrowser Interactions with JavaScript [HTTP Requests](HTTP Requests)  \nJavaScript and Rendering Engines What JavaScript Can Do  \nModifying HTML  \nCommunicating with the Server  \nStoring Data  \nHow You Should Use JavaScript  \nImproving User Experience  \nUsing JavaScript Responsibly  \nCreating Fallbacks  \nTools to Help You Use JavaScript  \nTools Built into the Language  \nTools Built into the Browser Summary  \nExercises  \nChapter 3: JavaScript Terminology  \nTable of Contents  \nBasics  \nDocument Object Model (DOM)  \nParents  \nChildren  \nSiblings  \nVariables  \nStrings  \nComments  \nOperators  \nUse Strict  \nStorage Cache Arrays Cookies  \nJavaScript Object Notation (JSON)  \nObjects  \nCreating Interaction Loops Conditionals Switch Statement Functions  \nAnonymous Functions  \nCallback Functions  \nMethods  \nEvents Ajax  \nSummary Exercises  \nTable of Contents  \nChapter 4: Accessing the DOM What Is the DOM?  \nThe ","cbCaibgksm2nRnts","https://ap.wps.com/l/cbCaibgksm2nRnts","pdf",159765,13,"English","# Introduction\n# Chapter 1: Progressive Enhancement\n## Defining Progressive Enhancement\n## History\n## Purpose\n## Accessibility\n## Reusability\n## Progressive Enhancement Versus Graceful Degradation\n## Structure Layer\n## Adding More Meaning with HTML5 Presentation Layer\n## Inline CSS\n## Linking Up Your Stylesheet\n## Behavior Layer\n## Inline JavaScript\n## Embedded JavaScript\n## External and Unobtrusive JavaScript\n## Benefits of Progressive Enhancement\n## Performance\n## Building for the Future\n## The Touch Interface\n## Final Words on Progressive Enhancement\n## Summary\n## Exercises\n# Chapter 2: JavaScript in the Browser\n## A Peoples History of JavaScript\n## Origins\n## Progressive Enhancement\n## The Behavior Layer\n## Moving Past Today\n## Browser Interactions with JavaScript\n## JavaScript and Rendering Engines\n## What JavaScript Can Do\n## Modifying HTML\n## Communicating with the Server\n## Storing Data\n## How You Should Use JavaScript\n## Improving User Experience\n## Using JavaScript Responsibly\n## Creating Fallbacks\n## Tools to Help You Use JavaScript\n## Tools Built into the Language\n## Tools Built into the Browser\n## Summary\n## Exercises\n# Chapter 3: JavaScript Terminology\n## Basics\n## Document Object Model (DOM)\n## Variables\n## Strings\n## Comments\n## Operators\n## Use Strict\n## Storage Cache Arrays Cookies\n## JavaScript Object Notation (JSON)\n## Objects\n## Creating Interaction Loops Conditionals\n## Switch Statement Functions\n## Anonymous Functions\n## Callback Functions\n## Methods\n## Events Ajax\n## Summary\n## Exercises\n# Chapter 4: Accessing the DOM\n## What Is the DOM?\n## The DOM Tree\n## Element Nodes\n## Text Nodes\n## Attribute Nodes\n## Working with the Element Node\n## Targeting by ID\n## Targeting by Tag Name\n## Targeting by Class\n## Using CSS Selectors in JavaScript to Target Nodes\n## Working with the Attribute Node\n## Getting an Attribute\n## Setting an Attribute\n## Removing an Attribute\n## Working with the Text Node and Changing Content\n## Moving Around the DOM\n## Accessing First and Last Child\n## Dynamically Adding and Removing Nodes from the DOM\n## Adding Elements to the DOM\n## Removing Elements from the DOM\n## Summary\n## Exercises\n# Chapter 5: Storing Data in JavaScript Variables\n## Strings\n## Numbers\n## Boolean\n## Performance in Variables Arrays\n## Basic Array\n## Associative Array\n## Multidimensional Array\n## Pushing Data into an Array\n## Working with Array Methods\n## Join\n## Slice\n## Shift and unshift\n## Pop\n## Concat Sort\n## Objects\n## Performance in Objects\n## JSON\n## Benefits of Using JSON\n## Using an API\n## Web Storage in HTML5\n## LocalStorage and sessionStorage\n## SetItem GetItem RemoveItem\n## Storing Chunks of Data with JSON\n## Using Web Storage Responsibly\n## Summary\n## Exercises\n# Chapter 6: Variables, Functions, and Loops\n## Defining Variables\n## Grouping Variables\n## Reserved Terms\n## Functions\n## Basic Functions\n## Anonymous Functions Scope\n## Calling a Function with a Function\n## Returning Data\n## A Function as a Method\n## Loops\n## For Loop\n## Conditionals\n## If Statement\n## If/else Statement\n## Switch Statement\n## If versus switch\n## Putting It All Together\n## Summary\n## Exercises\n# Chapter 7: Interacting with the User Through Events\n## Attaching an Event\n## Event Handlers\n## Event Listeners\n## Binding Events\n## Unbinding Events\n## Mouse and Keyboard Events\n## Click\n## Focus and blur\n## Accessibility\n## Change\n## Mouseover and mouseout (hovering)\n## Submit\n## Preventing Default Behavior\n## Keydown, keypress, and keyup\n## Putting It All Together\n## Touch and Orientation Events\n## Touchstart and touchend\n## Touchmove\n## Orientationchange\n## Support for Touch Events","[{\"question\":\"What does the book emphasize about progressive enhancement?\",\"answer\":\"It defines progressive enhancement and contrasts it with graceful degradation. The structure layer, presentation layer, and behavior layer are used to show how to add meaning and functionality step by step.\"},{\"question\":\"How does the book teach JavaScript interaction with browsers and servers?\",\"answer\":\"It covers browser history and interactions using HTTP requests, discusses what JavaScript can do for rendering engines, and explains communicating with the server and storing data.\"},{\"question\":\"What topics are included for working with the DOM and updating it dynamically?\",\"answer\":\"It explains the DOM tree with element, text, and attribute nodes, shows targeting by ID/tag/class and CSS selectors, and teaches how to add and remove nodes and change content.\"}]","Learning JavaScript - A Hands-On Guide to the Fundamentals of Modern JavaScript | PDF",33,[146,150,154,158],{"page_no":22,"url":147,"width":148,"height":149},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-12/d42f84c19abeb24f592349fcfe019a29.webp",983,1272,{"page_no":26,"url":151,"width":152,"height":153},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-12/2a82537595d3c355fa83fb79c5aa4d48.webp",982,1285,{"page_no":30,"url":155,"width":156,"height":157},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-12/f289c6aa27a0dcd21a3e896e1efb19f6.webp",981,1284,{"page_no":33,"url":159,"width":160,"height":161},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-12/b6f0a3f4a0449d281fb7445429be9bd5.webp",980,1283,{"list":163,"token":11},[164,171,178,184,190,196,202,208,214,220],{"doc_id":165,"doc_title":166,"file_type":137,"home_preview_img_url":167,"slug":168,"view_count":169,"category_name":29,"create_tm":170},491464,"HTML Cheat Sheet - A quick guide to HTML, CSS, and JavaScript basics","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229928196033/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110619&Signature=k6B9BCE3wWcyTKMXmktLN3tZxU0%3D","html-cheat-sheet-a-quick-guide-to-html-css-and-javascript-basics",21,1790849720,{"doc_id":172,"doc_title":173,"file_type":137,"home_preview_img_url":174,"slug":175,"view_count":176,"category_name":29,"create_tm":177},489296,"SSUI-11-12-React - React for JavaScript","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229926988879/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110619&Signature=G2rybXA7qZUGEDZwfjItZCCyluI%3D","ssui-11-12-react-react-for-javascript",11,1790822029,{"doc_id":179,"doc_title":180,"file_type":137,"home_preview_img_url":181,"slug":182,"view_count":169,"category_name":29,"create_tm":183},391794,"INTERVIEW QUESTIONS FOR FULL STACK DEVELOPMENT - Interview Questions","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229917406683/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110619&Signature=%2F7Mat84DtnPKmAThWCco537Bxt4%3D","interview-questions-for-full-stack-development-interview-questions",1790358757,{"doc_id":185,"doc_title":186,"file_type":137,"home_preview_img_url":187,"slug":188,"view_count":30,"category_name":29,"create_tm":189},706878,"HTML5 Games - Novice to Ninja","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230015637314/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110619&Signature=qXU1p99OH2w7msL2o1jFF2YsbBk%3D","html5-games-novice-to-ninja",1794694509,{"doc_id":191,"doc_title":192,"file_type":137,"home_preview_img_url":193,"slug":194,"view_count":105,"category_name":29,"create_tm":195},692311,"Node.js Course","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230003200153/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110619&Signature=1jY4OgBCK6R8BiiYb0u9xjr11kY%3D","nodejs-course",1794192942,{"doc_id":197,"doc_title":198,"file_type":137,"home_preview_img_url":199,"slug":200,"view_count":176,"category_name":29,"create_tm":201},345931,"HiQPdf Software - HTML to PDF Converter Library","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229911145611/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110619&Signature=EUc2wok0aX4ICtqpRQ65VRloQ0w%3D","hiqpdf-software-html-to-pdf-converter-library",1790059426,{"doc_id":203,"doc_title":204,"file_type":137,"home_preview_img_url":205,"slug":206,"view_count":33,"category_name":29,"create_tm":207},688769,"Code for Teens - The Awesome Beginner's Guide to Programming","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230000666024/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110619&Signature=W7EqfB4ZcwfJykTzTEmED0ocEpA%3D","code-for-teens-the-awesome-beginners-guide-to-programming",1794091476,{"doc_id":209,"doc_title":210,"file_type":137,"home_preview_img_url":211,"slug":212,"view_count":26,"category_name":29,"create_tm":213},721612,"Complete JavaScript - Professional Tips and Tricks","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230025022643/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110619&Signature=Zka6%2B9gL590xutCfMvLSHHO9MDs%3D","complete-javascript-professional-tips-and-tricks",1795060939,{"doc_id":215,"doc_title":216,"file_type":137,"home_preview_img_url":217,"slug":218,"view_count":33,"category_name":29,"create_tm":219},685683,"JSON - Quick Guide - Overview - Syntax - Datatypes","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229999686685/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110619&Signature=lBLia27ZMjEv5Zbz6HPJzXCRRN0%3D","json-quick-guide-overview-syntax-datatypes",1794016574,{"doc_id":221,"doc_title":222,"file_type":137,"home_preview_img_url":223,"slug":224,"view_count":30,"category_name":29,"create_tm":225},685682,"Nano JSON - Working with JSON formatted data in Isabelle/HOL and Isabelle/ML - Abstract","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230000176351/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110619&Signature=tPzGdpC4sRkHZUJxERENam9fFp4%3D","nano-json-working-with-json-formatted-data-in-isabellehol-and-isabelleml-abstract",1794016570]