Implementing end-to-end HTTPS encryption with CloudFlare for Google App Engine applications.
Register the root domain with Google Cloud Platform at the following:
function myFunc() { | |
console.log("hi", myFunc.who); | |
} | |
myFunc.who = "mom"; | |
myFunc(); // > hi mom |
function clone(src) { | |
const ret = src instanceof Array ? [] : {}; | |
for (const key in src) { | |
if (!src.hasOwnProperty(key)) { | |
continue; | |
} | |
let val = src[key]; | |
if (val && typeof val == "object") { | |
val = clone(val); | |
} |
const myObject = { | |
hi: "mom", | |
changeHi() { | |
this.hi = "medium"; | |
}, | |
something: undefined, | |
}; | |
console.log(myObject); // > {hi: "mom", something: undefined, changeHi: ƒ} |
const myObject = { | |
hi: "mom", | |
someone: { | |
else: "red", | |
}, | |
}; | |
function doSomething(whatever) { | |
whatever.hi = "medium"; | |
whatever.someone.else = "blue"; |
const myObject = {}; | |
const doSomething = function (whatever) { | |
whatever.hi = "mom"; | |
}; | |
console.log(myObject); // > {} | |
doSomething(myObject); |
// Object Literal | |
const myObject = { | |
hi: "mom", | |
}; | |
// Object constructor | |
const myObject = new Object({ | |
hi: "mom", | |
}); |