Answers for "js change key value in object"

-2

js change key value in object

var object = { boo:true, baa:5 };
console.log(object);
function change() {
  object.boo = false;
  object.baa++;
};
change();
console.log(object);
//Hope this helps!
Posted by: Guest on June-21-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language