This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const puppeteer = require("puppeteer"); | |
const chalk = require("chalk"); | |
var fs = require("fs"); | |
// MY OCD of colorful console.logs for debugging... IT HELPS | |
const error = chalk.bold.red; | |
const success = chalk.keyword("green"); | |
(async () => { | |
try { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env node | |
"use strict"; | |
var inquirer = require("inquirer"); | |
var chalk = require("chalk"); | |
var response = chalk.bold.green; | |
var resume = require("./resume.json"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"repository": { | |
"type": "git", | |
"url": "git+https://github.com/silent-lad/silentlad.git" | |
}, | |
"keywords": [ | |
"resume", | |
"babyShark" | |
], | |
"license": "ISC", | |
"bugs": { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env node | |
"use strict"; | |
var inquirer = require("inquirer"); | |
var chalk = require("chalk"); | |
var response = chalk.bold.green; | |
var resume = require("./resume.json"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function that () { | |
console.log("Normal call"); | |
console.log(this === window); | |
} | |
that(); | |
console.log(this === window) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"use strict"; | |
function that () { | |
console.log("Normal call"); | |
console.log(this === window); | |
} | |
that(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function Those(init) { | |
this.is_a_preposition = init; | |
this.displayProperty = function() { | |
console.log(`Is those a preposition? : ${this.is_a_preposition}`); | |
} | |
} | |
let word = new Those("yes"); | |
word.displayProperty(); //Prints :- Is those a preposition? : yes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function those () { | |
'use strict'; | |
console.log("Strict function hence this is undefined,Or is it?") | |
console.log(this === window); | |
} | |
let confused = { | |
those: those, | |
these: function() { | |
console.log(this === window); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let confused = { | |
those: function() { | |
console.log(this === window); | |
}, | |
these: ()=> { | |
console.log(this === window); | |
} | |
} | |
confused.those(); //False |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function Preposition(name_init) { | |
this.name = name_init; | |
this.displayName = function() { | |
console.log(`Preposition is ${this.name}`); | |
} | |
} | |
let these = new Preposition("these"); | |
these.displayName(); // Prints Preposition is these |
OlderNewer