This file contains 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
// ============================================================ | |
// O(1) : constant complexity | |
// ============================================================ | |
function constantO(num) { | |
return num; | |
} | |
console.log(constantO(10)); // 10 |
This file contains 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
-- ============================================================ | |
-- SELECT | |
-- ============================================================ | |
SELECT * | |
FROM humanresources.employee; | |
SELECT jobtitle | |
FROM humanresources.employee; |
This file contains 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
// ============================================================ | |
// Comparison operators | |
// ============================================================ | |
console.log(3 < 2); // false | |
console.log(1 == '1'); // true | |
console.log('Banana' === 'Banana'); // true | |
console.log('Banana' !== 'Apple'); // true | |
console.log('Banana' != 'Apple'); // true | |
console.log(2 <= 3); // true |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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
// ============================================================ | |
// Definition of an object / dictionary | |
// ============================================================ | |
const fruits = { | |
color: 'red', | |
length: 3 | |
} | |
// ============================================================ |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
OlderNewer