I want to change a boolean attribute of an object in JavaScript (the object is from a library called fullPage.js). I want to change the navigation attribute to false, preferably from another file.
Thanks in advance
I want to change a boolean attribute of an object in JavaScript (the object is from a library called fullPage.js). I want to change the navigation attribute to false, preferably from another file.
Thanks in advance
pretty straight forward. after you create the object just change the value for the key. If you want to do it from a file you have several ways of doing this.
Show us what you've done so far
let fullpage = {autoscrolling:true,
navagation:true}
console.log(fullpage)
fullpage.navagation = false
console.log(fullpage)