€ 28,99

ePUB ebook

niet beschikbaar

PDF ebook

niet beschikbaar

JavaScript

A Comprehensive manual for creating dynamic, responsive websites and applications that is suitable for both novices and experts.

IBRAHIM NUGWA ABDULRAZAK • Boek • paperback

  • Samenvatting
    This book shows off JavaScript's potential for developing web applications by mixing in-depth theory instruction with enjoyable assignments that will push your limits. To gain a thorough knowledge of the ideas, you can experiment with them in your own editor or browser console as you learn them.
    Basic programming concepts, including variables, arrays, objects, functions, conditionals, loops, classes, and more, will be covered first. Building on this foundation, you'll combine JavaScript with HTML and CSS to create interactive web applications that you can use immediately away, with the help of interesting examples and practical exercises.
    The fundamentals of the JavaScript language will be used to help you learn how to create your own scripts from scratch, which will make the script-writing process easier.
    Detailed examples and scripts explaining how to combine JavaScript with Google Apps script were provided in Chapters Sixteen and Seventeen. Creating and releasing add-ons for Google Sheets, Docs, and Forms on an online shop is made simple using Apps Script. It functions as a unified platform for creating, coding, and eventually sharing apps on the web store.

    The concepts of creating a menu, sending emails, developing interactive web pages, creating a user login and registration form, submitting HTML form data to Google Sheets, searching Google Sheets content from a website, and putting all of these strategies into practice to create an interactive web page that serves as a form to submit sheets will all be covered.

    This book also provides some recorded tutorials to guide users on how best to utilize the codes provided in the contents.
    1. How to Create Login an Register Form Using Google Spreadsheet Data: https://youtu.be/2qRti1S9rK8
    2. How to Display Google Sheet Data on Webpage https://youtu.be/-dkewMUYU7A
    3. How to Submit HTML Form Data to Google Spreadsheet https://youtu.be/7Vn3ycGS04I
    4. And lots more.
  • Productinformatie
    Binding : Paperback
    Distributievorm : Boek (print, druk)
    Formaat : 152mm x 229mm
    Aantal pagina's : 392
    Uitgeverij : Noogul Publishing
    ISBN : 9781304325372
    Datum publicatie : 04-2025
  • Inhoudsopgave
    Contents
    Audience ii
    Prerequisites iii
    Chapter One
    Features of JavaScript
    Uses of JavaScript 4
    1. Web Applications 5
    2. Web Development 5
    3. Mobile Applications 6
    4. Game 6
    5. Presentations 6
    6. Server Applications 7
    7. Web Servers 7
    Application of JavaScript 7
    Prerequisite to Writing Your First JavaScript program 8
    Running JavaScript in the Browser Window 11
    Using JavaScript in an HTML event attribute 11
    Using JavaScript in a script element 13
    Script placement and JavaScript execution 14
    Creating a .js file 16
    External References 18
    Chapter Two
    JavaScript Basics
    JavaScript Can Change HTML Content 22
    JavaScript Can Change HTML Attribute Values 23
    JavaScript Can Change HTML Styles (CSS) 24
    JavaScript Can Hide HTML Elements 24
    JavaScript Can Show HTML Elements 25
    The [removed] Tag 25
    JavaScript Functions and Events 26
    JavaScript in <head> or <body> 26
    JavaScript in <head> 26
    JavaScript in <body> 27
    JavaScript Expressions 28
    JavaScript Display Possibilities 29
    Using innerHTML 30
    Using [removed]() 30
    Using window.alert() 31
    Using console.log() 32
    JavaScript Print 32
    JavaScript Statements 33
    JavaScript Programs 33
    JavaScript Statements 34
    JavaScript White Space 36
    JavaScript Line Length and Line Breaks 36
    JavaScript Code Blocks 37
    JavaScript Keywords 38
    JavaScript Values 39
    JavaScript Literals 39
    Chapter Three
    JavaScript Comment
    Types of JavaScript Comments 42
    JavaScript Single line Comment 43
    JavaScript Multi line Comment 44
    Using JavaScript Comments to Prevent Code Execution 45
    Commenting Out Function Calls 46
    Commenting Out Function Bodies — Without Return Values 47
    Commenting Out Function Bodies — With Return Values 47
    Writing Effective JavaScript Comments 48
    Chapter Four
    JavaScript Variable
    JavaScript Keywords 52
    JavaScript Variable Naming Convention 53
    JavaScript Var Keyword 54
    Example using var 54
    Note: 55
    JavaScript Let Keyword 55
    JavaScript Const Keyword 56
    When to Use JavaScript const? 57
    JavaScript Local Variable 58
    Function Scope 59
    JavaScript Global Variable 60
    Internals of global variable in JavaScript 62
    Automatically Global 62
    Global Variables in HTML 63
    How to use variables 64
    Where to use which variable 65
    Chapter Five
    JavaScript Operators
    JavaScript Assignment 68
    Assignment Examples 69
    JavaScript Arithmetic Operators 71
    JavaScript Assignment Operators 73
    JavaScript Comparison Operators 74
    JavaScript String Addition 77
    Example 78
    Note 78
    Adding Strings and Numbers 78
    JavaScript Logical Operators 79
    JavaScript Bitwise Operators 81
    Bitwise logical operators 82
    JavaScript Bitwise AND 84
    Example 84
    JavaScript Bitwise OR 84
    Example: 85
    JavaScript Bitwise XOR 85
    JavaScript Bitwise NOT (~) 86
    JavaScript (Zero Fill) Bitwise Left Shift () 87
    JavaScript (Zero Fill) Right Shift (>>>) 88
    Converting Decimal to Binary 89
    Converting Binary to Decimal 90
    Chapter Six
    JavaScript Data Types
    JavaScript primitive data types 93
    JavaScript non-primitive data types 94
    Examples 94
    The Concept of Data Types 94
    JavaScript Types are Dynamic 95
    JavaScript Strings 96
    JavaScript String Methods 97
    JavaScript String Length 98
    Extracting String Parts 98
    JavaScript String slice() 98
    Note 99
    Examples 99
    JavaScript String substring() 100
    Replacing String Content 101
    Note 101
    JavaScript String ReplaceAll() 101
    Converting to Upper and Lower Case 103
    JavaScript String concat() 104
    JavaScript String trim() 104
    JavaScript Numbers 105
    JavaScript Random 107
    Exponential Notation 109
    JavaScript BigInt 109
    JavaScript Integer Accuracy 110
    How to Create a BigInt 111
    JavaScript Booleans 112
    The Boolean() Function 113
    </html> 115
    NaN data type 115
    Comparisons and Conditions 116
    JavaScript Comparison and Logical Operators 116
    Comparison Operators 116
    How Can it be Used 117
    Conditional (Ternary) Operator 118
    Syntax 118
    Comparing Different Types 118
    JavaScript if, else, and else if 119
    Conditional Statements 119
    The if Statement 120
    Syntax 120
    Example 120
    The else Statement 121
    Example 121
    The else if Statement 122
    Syntax 122
    Example 122
    JavaScript Switch Statement 123
    Syntax 124
    Example 124
    The break Keyword 126
    The default Keyword 126
    JavaScript Arrays 127
    JavaScript Array 129
    JavaScript Array Methods 131
    JavaScript Objects 133
    The type of Operator 134
    Chapter Seven
    JavaScript Functions
    Function Syntax 136
    Function declarations 137
    Function Invocation 138
    Invoking a JavaScript Function 139
    Note 140
    The Term “This” in Javascript 141
    Note 141
    The Global Object 141
    Invoking a Function as a Method 142
    Invoking a Function with a Function Constructor 144
    Function Return 144
    The ( ) Operator 145
    Functions Used as Variable Values 147
    Local Variables 148
    Chapter Eight
    JavaScript Objects
    Real Life Objects, Properties, and Methods 150
    Object Properties 151
    Accessing Object Properties 152
    Object Methods 153
    Example 154
    The this Keyword 155
    Accessing Object Methods 155
    Do Not Declare Strings, Numbers, and Booleans as Objects! 157
    Chapter Nine
    JavaScript Events
    HTML Events 159
    Mouse events: 160
    onclick Event Type 160
    onsubmit Event Type 161
    onmouseover and onmouseout 162
    Keyboard events: 163
    Form events: 163
    Window/Document events 163
    HTML DOM Events 165
    Examples 166
    JavaScript Event Handlers 171


    Chapter Ten
    JavaScript Loop
    Instead of writing: 175
    You can write: 175
    The For Loop 175
    Flow chart 178
    do...while statement 180
    Example: 182
    Differences between do… while and While Loop 183
    While Statement 183
    Example: 185
    Comparison between the while and for loop: 186
    for…….in Loop 187
    Example: JavaScript For In Loop 189
    Example Explained 190
    for-in Loop Examples 190
    Supported Browsers: 191
    The For Of Loop 192
    Explanation: 193
    Explanation: 194
    Explanation: 195
    Chapter Eleven
    Utilizing the JavaScript DOM
    Properties of document object 197
    Methods of document object 197
    Accessing field value by document object 198
    JavaScript - document.getElementById() method 199
    JavaScript - document.getElementsByName() method 199
    JavaScript - document.getElementsByTagName() method 200
    Another example of document.getElementsByTagName() method 201
    JavaScript - innerHTML 202
    Example of innerHTML property 202
    Show/Hide Comment Form Example using innerHTML 203
    JavaScript - innerText 204
    JavaScript innerText Example 204
    Chapter Twelve
    Javascript Browser Object Model
    Understanding the Browser Environment 207
    The user interface 207
    Loader 208
    HTML parsing 209
    CSS parsing 209
    JavaScript parsing 209
    Layout and rendering 209
    Igniting the BOM 210
    The Navigator Object 210
    Window Object 211
    Methods of window object 211
    Example of alert() in javascript 212
    Example of confirm() in javascript 212
    Example of prompt() in javascript 213
    Example of open() in javascript 213
    Example of setTimeout() in javascript 213
    JavaScript History Object 214
    Property of JavaScript history object 214
    Methods of JavaScript history object 214
    Example of history object 215
    JavaScript Navigator Object 215
    Property of JavaScript navigator object 215
    Methods of JavaScript navigator object 216
    Example of navigator object 216
    JavaScript Screen Object 217
    Property of JavaScript Screen Object 218
    Example of JavaScript Screen Object 218
    Chapter Thirteen
    JavaScript Form Validation
    Approach for Form Validation in JavaScript 220
    JavaScript Form Validation Example 221
    JavaScript Retype Password Validation 222
    JavaScript Number Validation 223
    JavaScript validation with image 223
    JavaScript email validation 225
    Chapter Fourteen
    JavaScript Object Oriented Programming 226
    JavaScript Classes 226
    Class Declarations 227
    Class Declarations Example 227
    Class Declarations Example: Hoisting 228
    Class Declarations Example: Re-declaring Class 228
    Class expressions 230
    Unnamed Class Expression 230
    Class Expression Example: Re-declaring Class 230
    Named Class Expression Example 232
    JavaScript Objects 232
    Creating Objects in JavaScript 233
    1) JavaScript Object by object literal 233
    2) By creating instance of Object 233
    3) By using an Object constructor 234
    Defining method in JavaScript Object 234
    JavaScript Object Methods 235
    JavaScript Prototype Object 237
    Syntax: 237
    Prototype Chaining 237
    JavaScript Prototype Object 238
    JavaScript Constructor Method 240
    Points to remember 240
    Constructor Method Example 240
    JavaScript static Method 241
    JavaScript static Method Example 242
    Example 4 244
    JavaScript Encapsulation 245
    JavaScript Encapsulation Example 246
    JavaScript Encapsulation Example: Validate 247
    JavaScript Encapsulation Example: Prototype-based approach 249
    JavaScript Inheritance 250
    JavaScript extends Example: inbuilt object 250
    JavaScript extends Example: Custom class 251
    JavaScript extends Example: a Prototype-based approach 252
    JavaScript Polymorphism 253
    JavaScript Abstraction 255

    Chapter Fifteen
    JavaScript Cookies
    How Cookies Works? 259
    How to create a Cookie in JavaScript? 260
    JavaScript Cookie Example 260
    Cookie Attributes 264
    Cookie expires attribute 264
    Cookie max-age attribute 265
    Cookie path attribute 266
    Cookie path attribute Example 267
    Cookie domain attribute 268
    Cookie with multiple Name-Value pairs 268
    Examples to Store Name-Value pair in a Cookie 269
    Deleting a Cookie in JavaScript 273
    Examples to delete a Cookie 274
    Example 3 276
    Chapter Sixteen
    Integrating JavaScript with Google Apps Script
    What can Apps Script do? 280
    Custom Menus in Google Workspace 281
    Clickable images and drawings in Google Sheets 282
    Dialogs and Sidebars in Google Workspace Documents. 283
    Alert dialogs 283
    Prompt dialogs 284
    Custom dialogs 286
    Custom sidebars 287
    File-open dialogs 288
    Custom Functions in Google Sheets 295
    Developing a custom function 295
    obtaining a personalized feature via the Google Workspace Marketplace 296
    Using a custom function 296
    Guidelines for custom functions 296
    Naming 296
    Arguments 297
    Return values 298
    Data types 298
    Autocomplete 298
    Using Google Apps Script services 299
    Sharing 300
    Optimization 300
    Google Sheets Macros 303
    Creating macros in Apps Script 304
    Editing macros 304
    Importing functions as macros 304
    Manifest structure for macros 305
    Best practices 306
    Things you can't do 306
    Chapter Seventeen
    Developing Web Apps in Apps Script
    Requirements for web apps 307
    Request parameters 308
    Deploy a script as a web app 310
    Test a web app deployment 310
    Permissions 310
    Embed your web app in Google Sites or any Site of your Choice. 311
    Web Apps and Browser History 311
    How to create Login and Register Form using Google spreadsheet data 312
    How to Display Google Sheet Data on Webpage 329
    How to Submit HTML Form Data to Google Spreadsheet 331
    How to Submit HTML Form to Gmail 355
    How to Search Google Sheet Contents from HTML Website. 367
    Conclusion 373

  • Reviews (0 uit 0 reviews)
    Wil je meer weten over hoe reviews worden verzameld? Lees onze uitleg hier.

€ 28,99

niet beschikbaar

niet beschikbaar



3-4 werkdagen
Veilig betalen Logo
14 dagen bedenktermijn
Delen 

Fragment

This book shows off JavaScript's potential for developing web applications by mixing in-depth theory instruction with enjoyable assignments that will push your limits. To gain a thorough knowledge of the ideas, you can experiment with them in your own editor or browser console as you learn them.
Basic programming concepts, including variables, arrays, objects, functions, conditionals, loops, classes, and more, will be covered first. Building on this foundation, you'll combine JavaScript with HTML and CSS to create interactive web applications that you can use immediately away, with the help of interesting examples and practical exercises.
The fundamentals of the JavaScript language will be used to help you learn how to create your own scripts from scratch, which will make the script-writing process easier. ×
SERVICE
Contact
 
Vragen