Javascript Arithmetic Operator Question 2

Introduction

We would like to add two numbers together.

Define two variables and assign number values.

then adds those two numbers and writes the result.

let firstNumber  //your code here
let secondNumber //your code here
let theTotal //your code here

console.log //your code here


let firstNumber = 10; 
let secondNumber = 20; 
let theTotal = firstNumber + secondNumber; 

console.log(firstNumber + " added to " + secondNumber + 
        " equals " + theTotal); 



PreviousNext

Related