Coding Tutorials For Everyone

 

Haeglo

JavaScript Tutorial #4 - A Simple Calculator

What We Cover Math Operations Event Listeners Variables Functions Here's a simple JavaScript calculator app that allows the user to perform basic mathematical operations such as addition, subtraction, multiplication, and division. Below is the full code that we are planning on using. This will give…

Continue reading...
Haeglo

JavaScript Tutorial #3 - Variables

What We Cover What is a variable? Naming A Variable When to use const, let, and var when declaring a variable What Is A Variable? In JavaScript, a variable is a named container that stores a value. Variables are used to store data that can…

Continue reading...
Haeglo

JavaScript Tutorial #2 - Output

What We Cover Logging out data to view in your console with a console.log() Writing data to an HTML document using document.write() Changing the contents of an HTML element using innerHTML Showing an Alert box using window.alert() Console.log() the console.log function is a very useful tool…

Continue reading...