scrimba
Learn Typescript
Learn primitive types
Using typeof (mini-challenge)
Go Pro!Bootcamp

Bootcamp

Study group

Collaborate with peers in your dedicated #study-group channel.

Code reviews

Submit projects for review using the /review command in your #code-reviews channel

Using typeof (mini-challenge)
AboutCommentsNotes
Using typeof (mini-challenge)
Expand for more info
index.js
run
preview
console
// Using typeof

const button = document.querySelector('.button')
const firstInput = document.querySelector('#first-input')
const secondInput = document.querySelector('#second-input')
const screen = document.querySelector('.screen')

function addNumbers(a,b) {
console.log(a+b)
screen.innerHTML = a + b

}

button.addEventListener('click', () => addNumbers(firstInput.value, secondInput.value))

Console
/index.html
-3:55