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 hasName(name) { | |
debugger | |
if(!name) { | |
console.warn("no name given") | |
return | |
} | |
} | |
function createPerson(name, age) { | |
debugger; |
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 debugThis(a, b) { | |
return function(c) { | |
debugger; | |
return a + c | |
} | |
} | |
debugThis(1, 2)(3) |
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 debugThis(a, b) { | |
debugger; | |
return a + b; | |
} | |
debugThis(1, 2) |
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
console.log("This is the first level"); | |
console.group(); | |
console.log("Level 2"); | |
console.group(); | |
console.log("Level 3"); | |
console.warn("More of level 3"); | |
console.groupEnd(); | |
console.log("Back to level 2"); | |
console.groupEnd(); | |
console.log("Back to the first level"); |
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 pets = { | |
name: "Simon", | |
type: "cat" | |
}; | |
const person = { | |
firstName: "Indrek", | |
lastName: "Lasn" | |
} |
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 pets = { | |
name: "Simon", | |
type: "cat" | |
}; | |
const person = { | |
firstName: "Indrek", | |
lastName: "Lasn" | |
} |
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 pets = { | |
name: "Simon", | |
type: "cat" | |
}; | |
console.table(pets); |
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 fruits = [ | |
"Apple", | |
"Watermelon", | |
"Orange", | |
"Pear", | |
"Cherry", | |
"Strawberry", | |
"Nectarine", | |
"Grape", | |
"Mango", |
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 fruits = ["kiwi", "banana", "strawberry"] | |
console.table(fruits) |
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 sayHello(name) { | |
if(!name) { | |
console.warn("No name given") | |
} | |
} | |
sayHello() |