Skip to content

Commit

Permalink
add: faang questions
Browse files Browse the repository at this point in the history
  • Loading branch information
thutasann committed Dec 30, 2024
1 parent 7e96ab1 commit 661ecdd
Showing 1 changed file with 28 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
function log(message) {
console.log(`\n===> ${message}`);
}

function q_one() {
log('question one');
// console.log(018 - 015);
console.log(0o17);
console.log(typeof typeof 1);
}

function sort_output() {
log('sort output');
const numbers = [33, 2, 8];
numbers.sort();
console.log('numbers', numbers[1]);
}

function loose_euql() {
log('loose equal');
console.log(false == '0');
console.log({} == '[object Object]');
console.log(0.1 + 0.2 == 0.3);
}

q_one();
sort_output();
loose_euql();

0 comments on commit 661ecdd

Please sign in to comment.