Skip to content

Instantly share code, notes, and snippets.

View silent-lad's full-sized avatar

Divyansh Tripathi silent-lad

View GitHub Profile

Keybase proof

I hereby claim:

  • I am silent-lad on github.
  • I am silentlad (https://keybase.io/silentlad) on keybase.
  • I have a public key ASCXk8pYCYbegcKsPOKHAqTTAUMtnVH7FvxYF3JanA5Y0wo

To claim this, I am signing this object:

Vue Bootcamp Syllabus

Day 1

  • Vue as a replacement to Jquery and JS for DOM manipulation

    • Will teach this only using vue.js CDN link.
    • Just to let them know how flexible is vue before jumping into component architecture.
  • The Vue Instance Lifecycle model and lifecycle hooks like created,mounted and hown and when to use them.

function Preposition(name_init) {
this.name = name_init;
this.displayName = function() {
console.log(`Preposition is ${this.name}`);
}
}
let these = new Preposition("these");
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
let confused = {
those: function() {
console.log(this === window);
},
these: ()=> {
console.log(this === window);
}
}
confused.those(); //False
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);
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
"use strict";
function that () {
console.log("Normal call");
console.log(this === window);
}
that();
function that () {
console.log("Normal call");
console.log(this === window);
}
that();
console.log(this === window)
#!/usr/bin/env node
"use strict";
var inquirer = require("inquirer");
var chalk = require("chalk");
var response = chalk.bold.green;
var resume = require("./resume.json");