Book Image

JavaScript by Example

By : Dani Akash S
Book Image

JavaScript by Example

By: Dani Akash S

Overview of this book

JavaScript is the programming language that all web developers need to learn. The first item on our JavaScript to-do list is building g a To-do list app, which you'll have done by the end of the first chapter. You'll explore DOM manipulation with JavaScript and work with event listeners. You'll work with images and text to build a Meme creator. You will also learn about ES (ECMAScript) classes, and will be introduced to layouts using the CSS3 Flexbox. You'll also develop a responsive Event Registration form that allows users to register for your upcoming event and use charts and graphics to display registration data. You will then build a weather application, which will show you different ways perform AJAX requests and work with dynamic, external data. WebRTC enables real-time communication in a web browser; you'll learn how to use it when you build a real-time video-call and chat application later in the book. Towards the end of the book, you will meet React, Facebook's JavaScript library for building user interfaces. You'll throw together a blog with React, and get a feel for why this kind of JavaScript framework is used to build large-scale applications. To make your blog more maintainable and scalable, you'll use Redux to manage data across React components.
Table of Contents (8 chapters)

What this book covers

Chapter 1, Building a ToDo List, starts with a simple DOM manipulation with JavaScript and work with event listeners, which will give you a good idea of how JavaScript works with the HTML in the website. You’ll set up the basic development environment and build your first ToDo list app.

Chapter 2, Building a Meme Creator, helps you build a fun application, Meme Creator. Through this, you’ll understand the canvas element, use ES6 classes, and be introduced to layouts using CSS3 flexbox. This chapter also introduces you to Webpack and setting up your own automated development environment using it.

Chapter 3, Event Registration App, focuses on developing a responsive Event Registration form with an appropriate form validation, which allows users to register for your upcoming event and also visually display the registration data through charts. This chapter helps you understand different methods of performing AJAX requests and how to work with dynamic data.

Chapter 4, Real-Time Video Call App with WebRTC, uses WebRTC to build a real-time video call and chat application in JavaScript. This chapter focuses on using the powerful web APIs available to JavaScript in the browser.

Chapter 5, Developing a Weather Widget, helps you build a weather widget for an application using the HTML5 custom elements. You’ll learn about web components and their importance in web application development.

Chapter 6, Building a Blog with React, discusses React, a library for building user interfaces in JavaScript created by Facebook. You'll then build a blog using React and tools such as create-react-app and react-router.

Chapter 7, Redux, will deep dive into making your blog more maintainable and scalable, along with an improved user experience, using Redux to manage data across the React components.