Skip to content

Instantly share code, notes, and snippets.

View chsami's full-sized avatar

chsami chsami

View GitHub Profile
<head>
<link rel="stylesheet" type="text/css" href="mystyle.css">
</head>
deepCopyExample() {
let product = {
name: 'beef',
price: 10,
category: {
name: 'food',
type: 'meat'
}
};
let deepCopyOfProduct = JSON.parse(JSON.stringify(product));
shallowCopyExample() {
let product = {
name: 'beef',
price: 10,
category: {
name: 'food',
type: 'meat'
}
};
let shallowCopyOfProduct = product;
"editor.fontLigatures": true,
"editor.fontFamily": "Fira Code",