O'Reilly logo

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Learn Javascript Web App Development -Build A Calculator App

Video Description

Javascript for Front-End Web Development - Build Your Own Calculator App Using Javascript, HTML5 & CSS in an hour

About This Video

  • Learn to create a working calculator web app using Javascript, HTML5, & CSS
  • Learn and Improve your web app development & Javascript skills

In Detail

In this course, you'll learn how to build your own calculator web app from the ground up with just HTML5, CSS, and Javascript in less than an hour.

You'll learn:

  • How to create the HTML5 structures of an app.
  • How to make an app pretty with CSS (design, design, design!)
  • How to make an app work (solve problems) with logic, i.e Javascript

By the end of the course, you'll be one stop closer to creating web apps like a pro. You could even try creating other smaller web apps.

The course is structured in such a way that each section will handle one of the 3 languages covered here.

Introduction: This is where we explain how the app works, and what we'll be using to achieve the same results.

Module 1: This Module shows how to create the bare bones of the app with HTML5. The result will be a page with all the elements we need in our app, devoid any colors or design elements.

Module 2: Here, we'll "beautify" our app. We'll be using CSS elements to give our app colors and styles. At the end of this module, we'll have a calculator app that looks like the final result, albeit one that does not perform any calculations yet.

Module 3: This would be the meat of the course. We'll be delving into Javascript in this module, and I'll teach you how to make the app work (perform calculations and display the results) in here.

Final section: Finally, we will give you some ideas on how to improve the app and make it your own in terms of design and functionalities.

All the codes and supporting files for this course are available at: https://github.com/PacktPublishing/Learn-Javascript-Web-App-Development--Build-A-Calculator-App

Table of Contents

  1. Chapter 1 : Introduction
    1. Introduction 00:04:00
  2. Chapter 2 : HTML building blocks
    1. The header section 00:08:10
    2. HTML blocks for the calculator 00:07:24
  3. Chapter 3 : Styling the calculator app - achieving the final look
    1. Styling the app - part 1 00:14:16
    2. Styling the app - Part 2 00:08:54
  4. Chapter 4 : [OPTIONAL] Javascript Basic Concepts (related to this project)
    1. Connecting HTML and script/JS files 00:06:04
    2. An introduction to variables and assigning values 00:09:59
    3. Mathematical operators and alerts 00:09:52
    4. Conditional statements - if else statement 00:06:13
    5. Conditional statements - Switch case 00:07:12
    6. Loops - For loop 00:06:31
    7. Arrays - 1 dimensional arrays 00:06:37
    8. Arrays - 2 dimensional arrays 00:05:08
    9. An introduction to functions (function definition and calls) 00:10:42
    10. Intro to DOM - getElementById and InnerText 00:10:48
    11. Intro to DOM - adding click events to buttons 00:09:06
    12. More Event listeners Part 1 00:08:12
    13. More Event listeners Part 2 00:04:39
  5. Chapter 5 : Adding logic with Javascript - The easy way
    1. Making the app work with Javascript 00:08:23
    2. Separating the Javascript 00:10:07
    3. Separating the Javascript - part 2 00:07:48
  6. Chapter 6 : Some design enhancements for the app
    1. the input box to external inputs 00:05:24
    2. Design enhancements - add shadows, change backgrounds 00:11:49
  7. Chapter 7 : Adding logic with Javascript - The professional way
    1. Making changes in the HTML code and the window onload function 00:06:05
    2. Retrieve the necessary elements using DOM functions 00:08:03
    3. Create the button click event for the calculator buttons 00:05:39
    4. Create the button click function 00:07:35
    5. Create the function that lets you enter information into the display box 00:07:02
    6. Create the function that does your calculator's calculations 00:05:05
    7. Create the function that does your calculator's calculations Part 2 00:03:28
    8. Create the function that erases your display & finish coding the calculator 00:04:08