JavaScript from Beginner to Professional
eBook - ePub

JavaScript from Beginner to Professional

Laurence Lars Svekis, Maaike van Putten, Codestars By Rob Percival

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

JavaScript from Beginner to Professional

Laurence Lars Svekis, Maaike van Putten, Codestars By Rob Percival

Book details
Book preview
Table of contents
Citations

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 projectsBook DescriptionThis 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 APIsWho this book is forThis 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

How do I cancel my subscription?
Simply head over to the account section in settings and click on “Cancel Subscription” - it’s as simple as that. After you cancel, your membership will stay active for the remainder of the time you’ve paid for. Learn more here.
Can/how do I download books?
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.
What is the difference between the pricing plans?
Both plans give you full access to the library and all of Perlego’s features. The only differences are the price and subscription period: With the annual plan you’ll save around 30% compared to 12 months on the monthly plan.
What is Perlego?
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.
Do you support text-to-speech?
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.
Is JavaScript from Beginner to Professional an online PDF/ePUB?
Yes, you can access JavaScript from Beginner to Professional by Laurence Lars Svekis, Maaike van Putten, Codestars By Rob Percival in PDF and/or ePUB format, as well as other popular books in Informatik & Programmierung in JavaScript. We have over one million books available in our catalogue for you to explore.

Information

Year
2021
ISBN
9781800566774

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