Advertisement
Josif_tepe

Untitled

Apr 28th, 2023
935
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. let firstNumber = document.getElementById("firstNumber")
  2. let secondNumber = document.getElementById("secondNumber")
  3. let result = document.getElementById("result")
  4. function funkcija() {
  5.     let A = parseInt(firstNumber.value)
  6.     let B = parseInt(secondNumber.value)
  7.  
  8.     result.innerHTML = A + B
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement