JavaScript from Beginner to Professional
eBook - ePub

JavaScript from Beginner to Professional

Learn JavaScript quickly by building fun, interactive, and dynamic web apps, games, and pages

  1. 544 pages
  2. English
  3. ePUB (mobile friendly)
  4. Available on iOS & Android
eBook - ePub

JavaScript from Beginner to Professional

Learn JavaScript quickly by building fun, interactive, and dynamic web apps, games, and pages

About this book

Start your journey towards becoming a JavaScript developer with the help of more than 100 fun exercises and projects. Purchase of the print or Kindle book includes a free eBook in the PDF format.

Key Features

  • Write eloquent JavaScript and employ fundamental and advanced features to create your own web apps
  • Interact with the browser with HTML and JavaScript, and add dynamic images, shapes, and text with HTML5 Canvas
  • Build a password checker, paint web app, hangman game, and many more fun projects

Book Description

This book demonstrates the capabilities of JavaScript for web application development by combining theoretical learning with code exercises and fun projects that you can challenge yourself with. The guiding principle of the book is to show how straightforward JavaScript techniques can be used to make web apps ranging from dynamic websites to simple browser-based games. JavaScript from Beginner to Professional focuses on key programming concepts and Document Object Model manipulations that are used to solve common problems in professional web applications. These include data validation, manipulating the appearance of web pages, working with asynchronous and concurrent code. The book uses project-based learning to provide context for the theoretical components in a series of code examples that can be used as modules of an application, such as input validators, games, and simple animations. This will be supplemented with a brief crash course on HTML and CSS to illustrate how JavaScript components fit into a complete web application. As you learn the concepts, you can try them in your own editor or browser console to get a solid understanding of how they work and what they do. By the end of this JavaScript book, you will feel confident writing core JavaScript code and be equipped to progress to more advanced libraries, frameworks, and environments such as React, Angular, and Node.js.

What you will learn

  • Use logic statements to make decisions within your code
  • Save time with JavaScript loops by avoiding writing the same code repeatedly
  • Use JavaScript functions and methods to selectively execute code
  • Connect to HTML5 elements and bring your own web pages to life with interactive content
  • Make your search patterns more effective with regular expressions
  • Explore concurrency and asynchronous programming to process events efficiently and improve performance
  • Get a head start on your next steps with primers on key libraries, frameworks, and APIs

Who this book is for

This book is for people who are new to JavaScript (JS) or those looking to build up their skills in web development. Basic familiarity with HTML & CSS would be beneficial. Whether you are a junior or intermediate developer who needs an easy-to-understand practical guide for JS concepts, a developer who wants to transition into working with JS, or a student studying programming concepts using JS, this book will prove helpful.

]]>

Frequently asked questions

Yes, you can cancel anytime from the Subscription tab in your account settings on the Perlego website. Your subscription will stay active until the end of your current billing period. Learn how to cancel your subscription.
At the moment all of our mobile-responsive ePub books are available to download via the app. Most of our PDFs are also available to download and we're working on making the final remaining ones downloadable now. Learn more here.
Perlego offers two plans: Essential and Complete
  • Essential is ideal for learners and professionals who enjoy exploring a wide range of subjects. Access the Essential Library with 800,000+ trusted titles and best-sellers across business, personal growth, and the humanities. Includes unlimited reading time and Standard Read Aloud voice.
  • Complete: Perfect for advanced learners and researchers needing full, unrestricted access. Unlock 1.4M+ books across hundreds of subjects, including academic and specialized titles. The Complete Plan also includes advanced features like Premium Read Aloud and Research Assistant.
Both plans are available with monthly, semester, or annual billing cycles.
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 1000+ topics, weโ€™ve got you covered! Learn more here.
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more here.
Yes! You can use the Perlego app on both iOS or Android devices to read anytime, anywhere โ€” even offline. Perfect for commutes or when youโ€™re on the go.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app.
Yes, you can access JavaScript from Beginner to Professional by Laurence Lars Svekis,Maaike van Putten,Rob Percival,Laurence Svekis,Codestars By Rob Percival in PDF and/or ePUB format, as well as other popular books in Informatik & Objektorientierte Programmierung. We have over one million books available in our catalogue for you to explore.

Appendix โ€“ Practice Exercise, Project, and Self-Check Quiz Answers

Chapter 1, Getting Started with JavaScript

Practice exercises

Practice exercise 1.1

4 + 10 14 console.log("Laurence"); Laurence undefined 

Practice exercise 1.2

<!DOCTYPE html> <html> <head> <title>Tester</title> </head> <body> <script>  console.log("hello world");  </script> </body> </html> 

Practice exercise 1.3

<!DOCTYPE html> <html> <head> <title>Tester</title> </head> <body> <script src="app.js"></script> </body> </html> 

Practice exercise 1.4

let a = 10; // assign a value of 10 to variable a console.log(a); // This will output 10 into the console /* This is a multi-line Comment */ 

Projects

Creating an HTML file and a linked JavaScript file

<!doctype html> <html>  <head>  <title>JS Tester</title>  </head>  <body>  <script src="myJS.js"></script>  </body> </html> // console.log("Laurence"); /* This is my comment Laurence Svekis */ 

Self-check quiz

  1. <script src="myJS.js"></script>.
  2. No.
  3. By opening and closing it with /* and */.
  4. Comment out the line with //.

Chapter 2, JavaScript Essentials

Practice exercises

Practice exercise 2.1

console.log(typeof(str1)); console.log(typeof(str2)); console.log(typeof(val1)); console.log(typeof(val2)); console.log(typeof(myNum)); 

Practice exercise 2.2

const myName = "Maaike"; const myAge = 29; const cod...

Table of contents

  1. Preface
  2. Getting Started with JavaScript
  3. JavaScript Essentials
  4. JavaScript Multiple Values
  5. Logic Statements
  6. Loops
  7. Functions
  8. Classes
  9. Built-In JavaScript Methods
  10. The Document Object Model
  11. Dynamic Element Manipulation Using the DOM
  12. Interactive Content and Event Listeners
  13. Intermediate JavaScript
  14. Concurrency
  15. HTML5, Canvas, and JavaScript
  16. Next Steps
  17. Appendix โ€“ Practice Exercise, Project, and Self-Check Quiz Answers
  18. Other Books You May Enjoy
  19. Index