Tip 1: Knowing things practically can help a lot during cross-questioning.
Tip 2: Practice some basic DSA questions.
Tip 1: Add a project that you can explain.
Tip 2: A good ATS score is a plus for shortlisting.
Write a function that will take an integer n as a parameter. You need to create two lists, one for odd numbers and one for even numbers between 1 and n, and print them using JavaScript.
1. var x = 10;
let y = 20;
const z = 30;
if (true) {
var x = 100; // What happens to x?
let y = 200; // What happens to y?
const z = 300; // What happens to z?
}
console.log(x, y, z);
2. console.log('Start');
setTimeout(() => console.log('middle'), 0);
console.log('End');
function outer() {
let count = 0;
return function inner() {
count++;
return count;
};
}
const counter = outer();
console.log(counter()); // Output?
console.log(counter()); // Output?

Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
What is recursion?