Javascript tests
testing javascript code
console.log("jello")
Use let when defining variables if you want it to change, use const if you want it to stay constant. You can also use var
let x = 1
const y = 2
var z = 3
!= is not equal && means and (x<1 && y<1) || means or (x=1 || y=1) ! means not !(x = y)
let sword = 20
let hammer = 30
const num3 = [1,2,3]
let health = 10
let healthOp = 10
let equipped = 0
function equip(tip) {
equipped = tip
}
console.log(equipped)