با کمک این کتاب، استفاده از جاوا اسکریپت، زبان اسکریپت نویسی محبوبی که به نویسندگان صفحات وب اجازه میدهد تا صفحات وب و سایتهای تعاملی را توسعه دهند را یاده خواهید گرفت. کتاب JavaScript for Web Warriors, 7th Edition (جاوا اسکرپیت برای جنگجویان وب، ویرایش هفتم)، تکنیکهای مختلفی را معرفی میکند تا بتوانید به سرعت از جاوا اسکریپت استفاده کنید. تمرینهای گام به گام در هر فصل، تکنیکهای خاصی را که برای ساختن برنامههای جاوا اسکریپت واقعی ضروری هستند را برجسته میکنند.
فعالیتهای راهنمایی شده در این کتاب، مهارتها را تقویت میکنند و همزمان با پیشرفت شما، پیچیدگی بیشتری پیدا میکنند. شما همچنین تکنیکهای اشکال زدایی را مطالعه میکنید. با استفاده از منابع دیجیتال MindTap، تمرینات کد نویسی جاوا اسکریپت قرار داده شده را در یک محیط توسعه یکپارچه معتبر (IDE) میخوانید و بلافاصله تمرین میکنید. اهداف یادگیری، خلاصهها، مرور و اصطلاحات کلیدی، مفاهیم اصلی را برجسته میکنند در حالی که تمرینهای تقویتی به شما امکان میدهند تا تکنیکهای جدید را بیشتر تمرین کنید. پس از اتمام این کتاب، میتوانید از جاوا اسکریپت برای ساخت برنامههای وب با کیفیت حرفه ای استفاده کنید.
Table of Contents:
- Chapter 1: Introduction to JavaScript
- Exploring the JavaScript Language
- Writing a JavaScript Program
- Writing Basic JavaScript Code
- Building Expressions with Variables
- Understanding Events
- Structuring JavaScript Code
- Creating a JavaScript Source File
- Validating Web Pages
- Summary
- Key Terms
- Review Questions
- Hands-On Projects
- Case Projects
- Chapter 2: Working with Functions, Data Types, and Operators
- Working with Functions
- Managing Events with Functions
- Using Built-in JavaScript Functions
- Understanding Variable Scope
- Working with Data Types
- Using Operators to Build Expressions
- Understanding Operator Precedence
- Using Expressions with Web Form Controls
- Locating Errors with the Browser Console
- Summary
- Key Terms
- Review Questions
- Hands-On Projects
- Case Projects
- Chapter 3: Building Arrays and Controlling Flow
- Storing Data in Arrays
- Exploring HTML Collections
- Viewing Arrays and HTML Collections with the Console
- Working with Program Loops
- Exploring Array Methods for Generating Loops
- Adding Decision Making to Your Code
- Managing Program Loops and Conditional Statements
- Summary
- Key Terms
- Review Questions
- Hands-On Projects
- Case Projects
- Chapter 4: Debugging and Error Handling
- Introduction to Debugging
- Starting Debugging with the Browser Console
- Running Javascript in Strict Mode
- Tracing Errors to Their Source
- Tracking Program Flow with Debugging Tools
- Managing Errors
- Customizing Your Error Handling
- Summary
- Key Terms
- Review Questions
- Hands-On Projects
- Case Projects
- Chapter 5: Creating a Web App Using the Document Object Model
- Designing a Web App
- Introducing Nodes
- Restructuring a Node Tree
- Running Timed Commands
- Working with Popup Windows
- Creating an Overlay
- Exploring the Browser Object Model
- Summary
- Key Terms
- Review Questions
- Hands-On Projects
- Case Projects
- Chapter 6: Enhancing and Validating Forms
- Exploring Forms and Form Elements
- Working with Selection Lists
- Working with Option Buttons
- Formatting Data Values in a Form
- Responding to Form Events
- Working with Hidden Fields
- Exploring Form Submission
- Validating Form Data with JavaScript
- Testing a Form Field Against a Regular Expression
- Creating a Custom Validity Check
- Managing Form Validation
- Summary
- Key Terms
- Review Questions
- Hands-On Projects
- Case Projects
- Chapter 7: Manipulating Data in Strings, Arrays, and Other Objects
- Retrieving Content from a Text File
- Working with Text Strings
- Introducing Regular Expressions
- Programming with Regular Expressions
- Exploring Array Methods
- Exploring the Math Object
- Exploring the Date Object
- Exploring Template Literals
- Summary
- Key Terms
- Review Questions
- Hands-On Projects
- Case Projects
- Chapter 8: Creating Customized Objects, Properties, and Methods
- Understanding Object-Oriented Programing
- Creating an Object Literal
- Working with Object Classes
- Working with Object Prototypes
- Introducing Closures
- Working with Public, Private, and Privileged Methods
- Combining Objects with Prototype Chains
- Data Storage with Associative Arrays
- Summary
- Key Terms
- Review Questions
- Hands-On Projects
- Case Projects
- Chapter 9: Managing State Information and Security
- Understanding Sessions and State Information
- Sharing Data Between Forms
- Introducing Web Storage
- Storing Data in Web Storage
- Introducing Cookies
- Writing Data into a Cookie
- Reading a Cookie
- Deleting a Cookie
- Exploring Security Issues
- Summary
- Key Terms
- Review Questions
- Hands-On Projects
- Case Projects
- Chapter 10: Programming with Event Objects and Third-Party APIs
- Working with Events as Objects
- Exploring Mouse, Touch, and Pointer Events
- Programming a Drag and Drop Action
- Exploring the Drag and Drop API
- Working with Keyboard Events
- Creating an Interactive Map
- Mapping Your Position with Geolocation
- Adding Directions to a Map
- Introducing the Device Orientation API
- Preparing an App for Mobile Use
- Summary
- Key Terms
- Review Questions
- Hands-On Projects
- Case Projects
- Chapter 11: Managing Data Requests with AJAX and Fetch
- Introducing Server Requests
- Exploring HTTP Messages
- Introducing AJAX
- Viewing the Status of a Request and Response
- AJAX and Callback Hell
- Introducing Arrow Functions
- Exploring the Promise Object
- Using the Fetch API
- Working with XML
- Creating an Autocomplete Search Box
- Working with Third-Party APIs
- Exploring Security Issues with APIs
- Summary
- Key Terms
- Review Questions
- Hands-On Projects
- Case Projects
- Chapter 12: Introducing jQuery
- Getting Started with jQuery
- Working with jQuery Selectors
- Handling Events with jQuery
- Working with Effects and Animations
- Exploring jQuery Plugins
- Summary
- Key Terms
- Review Questions
- Hands-On Projects
- Case Projects
- Appendix A: Installing and Configuring a Testing Server
- Appendix B: Working with HTML and CSS