Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var makeButton = document.createElementById('button');
- document.body.appendChild(makeButton);
- makeButton.setAttribute('class', 'clicked');
- makeButton.onclick = function(event) {
- console.log("hello");
- }
- makeButton.onclick = function(event) {
- console.log(this);
- }
- the window is everything in the scope of the javascript
- var dingHandle;
- function writeDing() {
- dingHandle = window.setTimeout(dingIt(), 3000);
- }
- function dingIt() {
- console.log('Ding!');
- }
- console.log(gameOfThrones[1][2]);
- console.log(gameOfThrones2.boltons[1]);
- gameOfThrones2.greyjoys[1] = "Reek"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement