This file contains hidden or 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 cloneObject(object) { | |
let copy; | |
if (Array.isArray(object)) { | |
copy = []; | |
} else { | |
copy = {}; | |
} | |
This file contains hidden or 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
// this - Special function's keyword | |
// Special value that exists only in functions (and class) | |
// this is used to represent the context of the function. | |
// context - the space/scope from which the function was called/invoked. | |
// Depending on how the function is being called, the context (value of this) changes. | |
This file contains hidden or 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 students = [ | |
{ | |
name: "Tony Parker", | |
firstProject: 80, | |
secondProject: 75, | |
finalProject: 90 | |
}, | |
{ | |
name: "Marc Barchini", | |
firstProject: 84, |
This file contains hidden or 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
@media screen and (max-width: 700px) { | |
} | |
@media screen and (max-width: 990px) and (min-width: 710px) { | |
} | |
@media screen and (min-width: 1000px) { |
Run the following commands in your terminal (in your SERVER/BACKEND repo):
heroku --version
If it gives you a version, it means that the Heroku CLI interface is correctly installed.
If not, create an account in Heroku (https://signup.heroku.com/) and repeat.
This file contains hidden or 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
exports.ext = function () { | |
var extTypes = { | |
"3gp" : "video/3gpp" | |
, "a" : "application/octet-stream" | |
, "ai" : "application/postscript" | |
, "aif" : "audio/x-aiff" | |
, "aiff" : "audio/x-aiff" | |
, "asc" : "application/pgp-signature" | |
, "asf" : "video/x-ms-asf" | |
, "asm" : "text/x-asm" |