Let's JavaScript! Code a calculator
4.8 (11 ratings)
Instead of using a simple lifetime average, Udemy calculates a course's star rating by considering a number of different factors such as the number of ratings, the age of ratings, and the likelihood of fraudulent ratings.
382 students enrolled
Wishlisted Wishlist

Please confirm that you want to add Let's JavaScript! Code a calculator to your Wishlist.

Add to Wishlist

Let's JavaScript! Code a calculator

Coding for beginner's
4.8 (11 ratings)
Instead of using a simple lifetime average, Udemy calculates a course's star rating by considering a number of different factors such as the number of ratings, the age of ratings, and the likelihood of fraudulent ratings.
382 students enrolled
Created by Kauress K .
Last updated 4/2017
Current price: $10 Original price: $35 Discount: 71% off
5 hours left at this price!
30-Day Money-Back Guarantee
  • 2 hours on-demand video
  • 1 Article
  • 16 Supplemental Resources
  • Full lifetime access
  • Access on mobile and TV
  • Certificate of Completion
What Will I Learn?
  • Code in JavaScript from scratch
  • Showcase your work to potential employers
  • Code more advanced projects in JavaScript
View Curriculum
  • HTML
  • CSS

Hi and welcome to " Let's JavaScript! ".  

My name is Kauress and you may know me from the “Introduction to git” class on SitePoint

JavaScript is known as a front end language for web applications. According to the Developer Survey of 2016 by Stack Overflow, JavaScript was surveyed to be the most commonly used programming language on the web.

Learning a new language can be complicated and time consuming. Let Kauress guide you through beginners projects in JavaScript and the DOM! You will code 5 projects in JavaScript from scratch. Building upon basic concepts and applying them in your projects. The projects you code will allow you to manipulate user input and build dynamic web components of an otherwise static web-page. And by the end of this project series you would have coded 5 productivity web-apps in JavaScript

Code your way into learning JavaScript and Let’s JavaScript! 

Goal of the project series: 

To teach the basic constructs of JavaScript by coding projects.

The projects:

This is a complete hands on series and the projects we will be coding are:

1.  A single operation calculator:   The calculator allow you to add, subtract multiply and divide 2 numbers with or without a decimal point. Our calculator will also have A backspace and clear feature. Our calculator will automatically start new calculations after the equal to operator is clicked. Eval has not used!

2. A to-do List :  A to-do list based on arrays and array methods which will allow you to add, strike through or delete individual items and additionally you can also add an item using the enter key on your keyboard and then clear the list

3.Pomodoro:  A pomodoro is a productivity method to track work and break durations, the pomodoro will have functions such as start, pause and reset. And it will automatically start the break duration after the work period is over

4. WYSIWYG editor: A what you is see is what you get editor which will have all the basic features of a standard text editor such as bold, center align , color text and so on. This project include new topics like local storage, which will allow your draft to be saved even after you refresh the page

5. Calender widget:  A calendar widget that shows not only the current , previous and next day but also the current time and local weather. And in this project you will be use the date and time objects and an API

What are the per-requisites? 


2. CSS

3. Basic know how of JavaScript theory

This series assumes little to NO knowledge of coding in JavaScript.

This project series is best suited to those that have had little exposure to JavaScript in the way of reading material and basic definitions but have no real experience coding in JavaScript.

What if I am an absolute beginner? :

Now if you have absolutely no exposure to JavaScript in any way shape or form, you may still do the projects.  You can extend your learning experience by referencing basic definitions and, other reading material along with the content provided in each project

When you finish this course, you will be able to:

1.Code in JavaScript from scratch
2.Showcase your work to potential employers

3.Carry on to do intermediate level projects in JavaScript

What tools do I need to do the projects? :

  1. A code editor (This part is covered in Section 2, lesson # 2)

Who is the target audience?
  • Beginners
  • Those who know HTML & CSS and have little exposure to JavaScript in the way of definations, but have no experience coding in JavaScript
  • Project based learners
Students Who Viewed This Course Also Viewed
Curriculum For This Course
30 Lectures
6 Lectures 13:12

A general overview of who this project series is for.

Preview 02:30

A overview of the outcome of this project series.

Preview 00:55

A recommendation on how to proceed.

Preview 02:49

Structure of series

Structure of an individual project
4 Lectures 18:43

Learn about the DOM, which is a structural blueprint of elements on a web page.

DOM: Introduction

Let's go over some very basic properties and methods of the DOM.

DOM: Properties & Methods

A general overview of navigating the DOM.

DOM: Navigation

A brief overview of JavaScript syntax.

JavaScript Syntax
Setting Up
2 Lectures 07:08
Course Assets

Setting up for the project
Calculator Project
17 Lectures 01:27:18

Download the starter project

Download starter project folder

Introduction to the calculator project

Preview 01:01

Brief overview of the structure and  design of the calculator.


In this section we will briefly go over a few concepts related to initializing a few global variables for the calculator

Global Variables: Part 1

Let's initialize a few global variables for the calculator!

Global Variables: Part 2

Let's go over a few concepts related to coding the setValue(number) function

function setValue(number): Part 1

Let's put the buttons on the calculator to work with function setValue(number.

Preview 07:38

Brief overview of the concepts involved in coding the functionality for the operator buttons

function oppClick(numericCode): Part 1

Let's code the oppClick function and see what happens when you click on an operator button such as the +, -, * or /  sign.

function oppClick(numericCode): Part 2

Let's learn about the concepts that will help us code the equalClick function

function equalClick( ): Part 1

Perform calculations and update the display div with the equalClick function.

function equalClick( ): Part 2

Add functionality to the clear button.

Preview 02:32

Learn about the substring method and strict inequality comparison operator (!==).

function backspace( ): Part 1

Code the backspace feature!

function backspace( ): Part 2

Let's go over the indexOf method to help you code the setDecimal function.

function setDecimal( ): Part 1

Set decimal points in numbers with the setDecimal function.

function setDecimal( ): Part 2

Let's bundle up and re-use those pesky if-else blocks with the setOppString function.

function setOppString( )
1 Lecture 00:28
About the Instructor
Kauress K .
4.1 Average rating
23 Reviews
1,934 Students
3 Courses
Web development & neuroscience

Instructor of "Introduction to Git" with over 4000+  enrollees on SitePoint, I now present to you "Let's JavaScript!". With a master's in Neuroscience, I now focus on programming and  developing front-end JavaScript projects.

My classes are "project based" and contextual. Therefore, the implementation of new concepts and technologies is through a project.