Math operations
I have a question
According to my course based on numbers in JavaScript
//The first one
let dogAge = prompt("How old is the dog")
let humanAge = alert((dogAge - 2) * 4 + 21)
//The second one
let dogAge = prompt("How old is the dog")
let humanAge = alert(dogAge - 2 * 4 + 21)
Which one is correct because I gave JavaScript the first one and is giving me different answers which is not same with the second one
According to my course based on numbers in JavaScript
//The first one
let dogAge = prompt("How old is the dog")
let humanAge = alert((dogAge - 2) * 4 + 21)
//The second one
let dogAge = prompt("How old is the dog")
let humanAge = alert(dogAge - 2 * 4 + 21)
Which one is correct because I gave JavaScript the first one and is giving me different answers which is not same with the second one
