Tip 1 : Initially started with DSA in took me 3 to 4 months as I already had put some time on DSA consistency would be a key here and once you are confident after doing this much you should also start leetcode contest or Coding Ninjas Weekly contest.
Tip 2 : As I was working in a service based company so I started with Web Dev to upskill myself , so I started with Web Dev.
Tip 3 : I began with MERN stack and create 2 or 3 good projects and on to this try to make real world projects with real world users will be an ultimate thing like some order placing app , social media app make sure to deploy them also,
Tip 1 : Add Relevant Projects with their deployed links (Rather then their github links). (It will leave good impression on the interview )
Tip 2 : Keep your resume short if you are doing leetcode then also mention your respective platforms ID's.
Tip 3 : Do not put false things on resume.



1. If the ith building has a height greater than or equal to the next i.e (i+1)th building then he simply jumps to the next building.
2. Otherwise he uses either {‘HEIGHTS[i+1] -‘HEIGHTS[i]} bricks or just 1 ladder to climb up to the next building.
This round was taken by an independent developer through Bar Raiser Platform on Goggle Doc .
First 15 minutes he asked me a problem on basic DSA just to see how I think.
Then for the rest nearly 50 minutes on Javascript concepts.



He asked me questions on Temporal Dead Zone , currying and use cases of currying and callbacks
For each question I tried to create some context for the question like in first TDZ (Temporal Dead Zone question) like how did this concept of TDZ came into picture so I told the interview that I want to first explain what is TDZ first then I will explain how this happens for that I began explaining different types variables in JS then I started explaining Hoisting then how Hositing behaves differently in case of different variables then at last I gace an example of TDZ also.
This way for each question I did the same way.
Note : Just one suggestion while doing any question speak out loud also while doing Output based snippet questions because that keeps interview in the discussion and he gets idea about our thought process.
He asked questions on Promises asked me to write a dummy Promise .Then he asked me to write a function that return a promise the condition is like : "There is a network call and the call could be successfull or fail okay , if it fails then retry the promise till K times and if it still fails then return the promise with a reject and if it succeeds them simply return the resolve ".
So in this question first I created a dummy code that returns a promise . Then I filled the function.
//Code that I presented there
const retPromise = async function (networkCall,k){ //k is the maximum try count
return new Promise( async (resolve,reject) {
for(let itr=0;itr let error;
try{
let result = await networkCalll();
resolve(result);
}
catch(err){
error = err;
}
}
reject(err);
})
}
He asked me write output for a snippet he showed me :
The code was :const promise = new Promise((res) => res(2));promise .then((v) => { console.log(v); return v * 2; }) .then((v) => { console.log(v); return v * 2; }) .finally((v) => { console.log(v); return v * 2; }) .then((v) => { console.log(v); });
I just went through each line and told how I thought about the function as there we have a concept of chaining of promises.
In this case my output was little bit wrong as I didn't print the last output line.
Then the interviewer clarified me and made my concept clear.
Two Interviews from Travelopia Team came to take this round.
Can you identify few of the concepts we are using in this peace of code and how its behaving
.// let name1 ={ // firstName : "Pankaj",// lastName : "Bhatt"// }// let name2 ={// firstName : "Rajan",// lastName : "Guna"// }
// let printFullName = function (town, state) {// console.log(this.firstName + " " + this.lastName + " from " + town + " , " + state)// }
// //// printFullName.call(name1, "Bangalore", "Karnataka");
// //// printFullName.apply(name2, ["Bangalore", "Karnataka"]);
// //// let printMyName = printFullName.bind(name1, "Bangalore", "Karnataka");
// printMyName();
I started from line number 1 till last and I explained each and every concept than I explained difference between call,apply and bind and use cases.
He asked me to handle an API call and put thee results into front end element.
Then he asked me to rewite this use Async-await and also asked difference between promises and async and await also.
let url = "https://reqres.in/api/users?page=2";
let callAPI = fetch(url);
callAPI.then((response)=>{
return response.json();
}).then((result)=>{
console.log("Final res "+result);
}).catch((err)=>{
console.log(" Error occured "+err);
});
/* console.log(1 + "2" + "2");
// 122console.log(1 + +"2" + "2");
//"32"console.log(1 + -"1" + "2");
//0+"2" =>"02"console.log(+"1" + "1" + "2");
//"112"console.log( "A" - "B" + "2");
//"-12"console.log( "A" - "B" + 2);
// 1 *//* const [a, ...b, c] = [1, 2, 3, 4, 5];console.log(a, b, c); */
I tried to explain each line what I thought and then added output against each line later I saw my 2 answers were wrong.
So the interviewer corrected me.
var myFun = { name: "vpn", func: function() { var self = this; console.log("outer func: this.name = " + this.name); //outer func: this.name = vpn console.log("outer func: self.name = " + self.name); // //outer func: this.name = vpn (function() { console.log("inner func: this.name = " + this.name); // inner func: this.name = undefined console.log("inner func: self.name = " + self.name); //inner func: self.name = vpn }()); }};myFun.func();
I discussed how This behaves in different context to let them understand that I know how this works then I started writing the output.
const [a, ...b, c] = [1, 2, 3, 4, 5];console.log(a, b, c);
I explained spread operator for this question then I told that this is syntax error as c will be undefined and this list id=s defined with const so it can't be undefined so I explained him the logic.

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