get javascript variable in console code example
Example 1: see all functions in a website with console
for(var b in window) {
if(window.hasOwnProperty(b)) console.log(b);
}
Example 2: print javascript variable in console
console.log(p);
for(var b in window) {
if(window.hasOwnProperty(b)) console.log(b);
}
console.log(p);