New Page  |  Edit Page

PopUp New Window


function editPage(){
    const windowFeatures = "left=150,top=150,width=960,height=600";
    const handle = window.open("http://www.example.com/example.html", "editorWindow", windowFeatures);
        if (!handle) {
            // The window wasn't allowed to open
            // This is likely caused by built-in popup blockers.

           // …
        }
}

Object.keys() returns an array of object's keys, Object.values() returns an array of object's values, and Object.entries() returns an array of object's keys and corresponding values in a format [key, value].

const obj = {
  a: 1
 ,b: 2
 ,c: 3
}

console.log(Object.keys(obj)) // ['a', 'b', 'c']
console.log(Object.values(obj)) // [1, 2, 3]
console.log(Object.entries(obj)) // [['a', 1], ['b', 2], ['c', 3]]