JavaScript from Beginner to Professional
eBook - ePub

JavaScript from Beginner to Professional

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

Condividi libro
  1. 544 pagine
  2. English
  3. ePUB (disponibile sull'app)
  4. Disponibile su iOS e Android
eBook - ePub

JavaScript from Beginner to Professional

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

Dettagli del libro
Anteprima del libro
Indice dei contenuti
Citazioni

Informazioni sul libro

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.

Domande frequenti

Come faccio ad annullare l'abbonamento?
È semplicissimo: basta accedere alla sezione Account nelle Impostazioni e cliccare su "Annulla abbonamento". Dopo la cancellazione, l'abbonamento rimarrà attivo per il periodo rimanente già pagato. Per maggiori informazioni, clicca qui
È possibile scaricare libri? Se sì, come?
Al momento è possibile scaricare tramite l'app tutti i nostri libri ePub mobile-friendly. Anche la maggior parte dei nostri PDF è scaricabile e stiamo lavorando per rendere disponibile quanto prima il download di tutti gli altri file. Per maggiori informazioni, clicca qui
Che differenza c'è tra i piani?
Entrambi i piani ti danno accesso illimitato alla libreria e a tutte le funzionalità di Perlego. Le uniche differenze sono il prezzo e il periodo di abbonamento: con il piano annuale risparmierai circa il 30% rispetto a 12 rate con quello mensile.
Cos'è Perlego?
Perlego è un servizio di abbonamento a testi accademici, che ti permette di accedere a un'intera libreria online a un prezzo inferiore rispetto a quello che pagheresti per acquistare un singolo libro al mese. Con oltre 1 milione di testi suddivisi in più di 1.000 categorie, troverai sicuramente ciò che fa per te! Per maggiori informazioni, clicca qui.
Perlego supporta la sintesi vocale?
Cerca l'icona Sintesi vocale nel prossimo libro che leggerai per verificare se è possibile riprodurre l'audio. Questo strumento permette di leggere il testo a voce alta, evidenziandolo man mano che la lettura procede. Puoi aumentare o diminuire la velocità della sintesi vocale, oppure sospendere la riproduzione. Per maggiori informazioni, clicca qui.
JavaScript from Beginner to Professional è disponibile online in formato PDF/ePub?
Sì, puoi accedere a JavaScript from Beginner to Professional di Laurence Lars Svekis, Maaike van Putten, Codestars By Rob Percival in formato PDF e/o ePub, così come ad altri libri molto apprezzati nelle sezioni relative a Computer Science e Programming in JavaScript. Scopri oltre 1 milione di libri disponibili nel nostro catalogo.

Informazioni

Anno
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...

Indice dei contenuti