The final challenge of grabbing data, displaying, pagination, ect is probably one of the closest challenges you'll have as a dev especially if you have several years of exp. I appreciate the consice approach of adding pagination functionality, there were different places while coding along where I had a different idea but ended up taking up more time to solve. Thank you
@RavindraSingh-lp9pl Жыл бұрын
@its coding Doctor...we need more such projects in React. I checked your channel has just 2 projects in React please build few more. I like your teaching style.
@somnathtiwari5593 Жыл бұрын
Thank You so much for this, I have tried learning Pagination from other youtubers too but was never able to keep the logic to write the code behind it in my mind but and you took one step at a time with explaining every step was remarkable. I dont think I will ever forget how this works now.
@itscodingdoctor Жыл бұрын
Glad to hear 😊. Keep learning
@berndeveloper Жыл бұрын
@@itscodingdoctor It's important to know that this is not the best approach to deal with pagination, it needs to be handled on the server side, not in front. This approach can be used when the total number of items is relatively small and can be easily handled by the client.
@jaia466 Жыл бұрын
@@berndeveloperim with this too. Imagine having to paginate a data set of thousands of data on client. This should be handled on the server. What i do is just i only pass limit and offsets from the client to my backend to grab all necessary data per page
@vishwasgupta605 Жыл бұрын
It was helpful please keep doing ! my solution for que3 const person = { name: "ram", age: 30, }; const arr = []; for (let value in person) { arr.push([value, person[value]]); } console.log(arr);
@itscodingdoctor Жыл бұрын
Awesome
@imam.k8114 Жыл бұрын
for in loop will also include properties from object.prototype chain which may not be desirable
Excellent questions and coding challenge. Coding covers many concepts.
@itscodingdoctor Жыл бұрын
Thanks 🙏
@itscodingdoctor Жыл бұрын
Find more MNC Interview Experiences: kzbin.info/aero/PLGZJDzu5NntRmgwjCg0OwFpt9yHh68Muc
@arijitroy5695 Жыл бұрын
Ok. I have an little improvment idea which is some times I have seen, something in pagination like this 1 | 2 | 3 | 4 | .......| 9 | 10 | 11 | 12 . when pagination number rapidly grows and you don't have option to select number of pages. So, could you please demonstrate how to do that?
@itscodingdoctor Жыл бұрын
Sure, that's a great idea. I'll try to upload it soon.
@savatabachhav7593 Жыл бұрын
Thank you so much for this. We want more such videos.
@itscodingdoctor7 ай бұрын
More to come! You can check the MNC interview experience playlist on this channel
@meenatchieel77308 ай бұрын
Its great..Really Thanks a lot for duch wonderfull real time problem solving
@itscodingdoctor7 ай бұрын
Welcome!
@LUFI-Munki Жыл бұрын
Great work sir, appreciate
@AjayYadav-zp7yl Жыл бұрын
Good work bro......keep it up👍
@itscodingdoctor Жыл бұрын
🙏
@aveesp1 Жыл бұрын
var person = { firstname: "john", lastname: 'doe', age: 30 }; const getDetails = (obj) => { let arr = []; for(let i in obj){ arr.push([i, obj[i]]); } return arr; } getDetails(person); //output as follow [ [ "firstname", "john" ], [ "lastname", "doe" ], [ "age", 30 ] ]
@venkykp1745 ай бұрын
Hello brother, I loved your way of explanation, simply wow Thankyou
@procoderindia Жыл бұрын
3rd ways to solve this. const person = { name: "ram", age: 30, }; const output = []; for (let key in person) { output.push([key, person[key]]); } console.log(output);
@140_nihalborkar3 Жыл бұрын
amazing🎉
@marimuthur9456Ай бұрын
Awesome😊
@do_u_dsa Жыл бұрын
Quality content, good job!
@itscodingdoctor Жыл бұрын
Thanks 🙏
@sarathnath499111 ай бұрын
12:00 how that we can achieve by JavaScript. Bcz sometimes anchor tag to append through loop rendered as string in html page. One more q, if its cause csr then why Amazon using this approach and what are the solutions to prevent this? Pls reply
@hazemkhaled941611 ай бұрын
The video is greate I actually learned some valuable things here but wanted to point out that I think there will be a bug in the code if the last page has different no of elements than other pages For Example: if there where 197 items last page will contain only 7 items not 10 the bug bec indexOfLastTodo= currentPage * todosPerPage will be equal to 199 but which is wrong since the last element index will be 196 when you try to slice the todos using the indexOfLastTodo in the last page it will cause an error as there is no item of index 199
@itscodingdoctor7 ай бұрын
I haven't tested it. I tried to create a happy flow. There might be more bugs/improvement space in my code (i kept it really simple to achieve the basic functionality)
let persne={ name:"shivam", age:27 } let array =[] let output = Object.entries(persne).map((items,id)=>{ array.push(items) }) console.log("mdbvsjd",array)
@dukesoni5477 Жыл бұрын
interview for candidate with how much years of experience
@Tathāstu2k Жыл бұрын
const getObjectEntries = (obj) => { let arr = []; for (let key in obj) { arr.push([key, person[key]]); } return arr; };
@mynenianupama1211Ай бұрын
simple console.log(Object.entries(person))
@shankar1050 Жыл бұрын
the method you used to fill the array with page numbers is not good. simply you can map an index with index+1. but you wrote complex code(for beginners it is complex)
@itscodingdoctor7 ай бұрын
One problem has many solutions. Hardly matters (for small things) , but if you know a better solution use it by all means.
@arijitroy5695 Жыл бұрын
Are questions really for Experienced interview. I am telling because These are really very basic and easy questions for experienced. isn't it right??
@itscodingdoctor Жыл бұрын
Yes these questions are for experienced.
@itscodingdoctor Жыл бұрын
In pratice level of the questions depends on multiple factors
@itscodingdoctor Жыл бұрын
Interviewer and the company
@ShreyanshMehta-ov8ze Жыл бұрын
how many years of experience is required to crack this types of interviews?
@itscodingdoctor Жыл бұрын
1+
@mkfacts3250 Жыл бұрын
how much salary was offered to you after this interview??
@itscodingdoctor Жыл бұрын
I had a counter offer as well. So it won't be same for everyone.
@Bankey_Bihari_Sarkar_Vrindavan Жыл бұрын
const person = { name : "Akshay", age : 22 } let arr = []; for(let x in person) { arr.push([x, person[x]]); } console.log(arr, Object.entries(person));
@mynenianupama1211Ай бұрын
wrong , solution is simple console.log(Object.entries(person))
@wij8044 Жыл бұрын
All these ways to avoid using TypeScript 🤦♂️
@itscodingdoctor Жыл бұрын
Typescript is gaining a lots of popularity and is highly recommended. In this interview didn't consider it though.