JSFiddle - React, Tailwind, and code Playground
by Nic Fontaine
JavaScript
let foo = {
one: 1,
two: 2
}
function doit(obj, key) {
obj[key]++
alert(obj[key])
}
doit(foo, foo.one)
document.write(foo.one)
by Nic Fontaine
let foo = {
one: 1,
two: 2
}
function doit(obj, key) {
obj[key]++
alert(obj[key])
}
doit(foo, foo.one)
document.write(foo.one)