Testing out functions, objects, properties
by Chance Nursey-Bush
HTML
<button id="btnClick"> Click</button>
JavaScript
/*function one(){
one.x = 5;
one.two = function(){
return console.log("inside two");
}
console.log("inside one");
}*/
var one = {
two : function(){
return console.log("inside two");
}
}
/*function three(){
console.log("inside three");
}*/
//var myButton = document.getElementById("btnClick");
//myButton.addEventListener("click", one);
//one();
//console.log(one.two);
one.two();