JS Challenge: 2

·

1 min read

Number Datatype

Number is the primitive datatype of JavaScript. It includes both Integer(1,2,3, -5) and Floating point Numbers(3.14, -5.66).

const number1 = 10
const number2 = 20
const addition = number1 + number2

console.log(addition)

Challenge:

  1. Enter different values for both number1 and number2
  2. Log the output in console using console.log()