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
| # Sections | |
| 1. JavaScript | |
| 2. TypeScript | |
| 3. Asynchronous Programming | |
| 4. Express.js |
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
| # Questions | |
| ## JavaScript (Core) | |
| ### Language fundamentals | |
| 1. What is the difference between passing a primitive value and passing an object as a function argument in JavaScript? What happens in each case when you modify the parameter inside the function? | |
| ### Execution model (call stack, event loop, task queues) |
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
| # Socket.io Chat App | |
| ## 1. Connection & Identity Registration | |
| - Client connects with a username | |
| - Server accepts or rejects the connection | |
| - Server assigns a socket ID | |
| - User is removed from state on disconnect | |
| ### Topics |
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
| export function format(value, formatter) { | |
| const formatted = formatter(value); | |
| return formatted; | |
| } | |
| function formatString (value) { | |
| return value.toUpperCase() | |
| } | |
| function formatNumber(value) { |
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 departments = { | |
| engineering: { | |
| budget: 500000, | |
| headcount: 45, | |
| location: "Building A", | |
| }, | |
| marketing: { | |
| budget: 300000, | |
| headcount: 20, | |
| location: "Building B", |
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 franchises = { | |
| theGodfather: { | |
| book: { | |
| year: 1969, | |
| author: 'Puzo', | |
| title: 'The Godfather' | |
| }, | |
| original: { | |
| budget: 7200000, | |
| director: 'Coppola', |
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 originals = { | |
| theGodfather: { | |
| budget: 7200000, | |
| director: 'Coppola', | |
| title: 'The Godfather' | |
| }, | |
| theHobbit: { | |
| author: 'Tolkien', | |
| year: 1937, | |
| title: 'The Hobbit' |
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 media = { | |
| theGodfather: { | |
| budget: 7200000, | |
| director: 'Coppola', | |
| title: 'The Godfather' | |
| }, | |
| theHobbit: { | |
| author: 'Tolkien', | |
| protagonist: 'Bilbo', | |
| price: 20, |
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 theHobbit = { | |
| author: 'Tolkien', | |
| protagonist: 'Bilbo', | |
| pages: 300, | |
| title: 'The Hobbit' | |
| } | |
| const theMatrix = { | |
| budget: 63000000, | |
| director: 'Wachowskis', | |
| title: 'The Matrix' |
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 theHobbit = { | |
| author: 'Tolkien', | |
| protagonist: 'Bilbo', | |
| pages: 300 | |
| } | |
| const theMatrix = { | |
| budget: 63000000, | |
| director: 'Wachowskis', | |
| title: 'The Matrix' |
NewerOlder