Tricky JavaScript Interview Questions and Answers

  Рет қаралды 458,066

techsith

techsith

Күн бұрын

Пікірлер: 491
@nasriddinbekbektemirov5796
@nasriddinbekbektemirov5796 3 жыл бұрын
Honestly, I am happy that I found your tutorials. Now I am feeling a little bit comfy so I can prepare for the interview without worries
@omkaryadav7445
@omkaryadav7445 3 жыл бұрын
Same here buddy
@charles-y2z6c
@charles-y2z6c 5 жыл бұрын
Thank you, many times on an interview it becomes obvious the interviewer watched these videos too.
@vikrantsingh47
@vikrantsingh47 5 жыл бұрын
this was really helpful. i am using javascript for many years but never knew of so many features like freeze and seal
@fida
@fida 5 жыл бұрын
you proved that .. those are really useless
@BobbyBundlez
@BobbyBundlez 4 жыл бұрын
@@fidaLMFAO yeah they sound really dangerous tbh... why would i ever wanna make something completely immutable
@journiqeducacao91
@journiqeducacao91 2 жыл бұрын
I've been watching u for a while now, and your didactics (and thumbnails) are the best. Subscribed!
@MP-mh1tu
@MP-mh1tu 4 жыл бұрын
This man is capable of explaining things well in a simple way, the way few people do. Thank you, sir.
@Techsithtube
@Techsithtube 4 жыл бұрын
I appreciate that!
@justadev____7232
@justadev____7232 2 жыл бұрын
Object.freeze ---> Prevent any write operations in that object. Object.seal ---> Able to edit existing data in the object, but not able to add anything new
@thedeveloper4207
@thedeveloper4207 6 жыл бұрын
If you want to crack these questions then just ask the interviewer where he has used such scenarios. You'll be instantly selected
5 жыл бұрын
I'll add it to my *How to look smart in an interview* trello card, thanks!
@pa9351
@pa9351 5 жыл бұрын
The point is not to use it, the point is that as a senior you should be aware of the dangers of using tricky codes like this and stop others for doing something like 5 < 6 < 7 even if it works
@anthonya606
@anthonya606 4 жыл бұрын
I been denied on the last round of interview with CTO because of this answer. Everything was great until he decided to gave me a logical puzzle "You need to measure exactly 6 liters of water. But you only have a 4-liter and a 9-liter bucket. How can you do this?" I asked him "How often you guys are measuring water here with buckets" and been rejected right away...
@weblogic7723
@weblogic7723 4 жыл бұрын
@@anthonya606 Better off not working for them. Too egoistic if they cant even take a simple joke.
@Daniel_WR_Hart
@Daniel_WR_Hart 4 жыл бұрын
@@anthonya606 The thing being measured is irrelevant, they just wanted to test your problem solving skills. Although if you clarified that you were joking and still willing to try but they didn't want to hear it, then yea fuck 'em.
@priyanshubhardwaj2158
@priyanshubhardwaj2158 3 жыл бұрын
This vid was meant to subs both your channels. Thanks a ton!
@Techsithtube
@Techsithtube 3 жыл бұрын
Thanks for watching!
@rishabhchopra883
@rishabhchopra883 2 жыл бұрын
Great video. Each question taught me a concept I barely knew. Thanks for this gem !!!
@Techsithtube
@Techsithtube 2 жыл бұрын
Glad it was helpful!
@EdgarGarcia-jo5qp
@EdgarGarcia-jo5qp 4 жыл бұрын
For 3:00 question, I think in this solution that works for the input provided: var nums = [1,2,2,3]; nums.splice(2,1); console.log(nums); I know it looks a bit silly but, hey, I got the answer. Obviously, if there is more than one duplicate, then the Set works fine.
@gummiglas5571
@gummiglas5571 2 жыл бұрын
these questions are so good, they give you a deeper understanding of javascript
@davidsimoes6248
@davidsimoes6248 2 жыл бұрын
Great class and very well explained. Please keep this channel because I´m sure It has been helped a lot of developers which try learning more each single day like me. Thanks
@TheRaghavboyz
@TheRaghavboyz 6 жыл бұрын
oh god, i wish i never sit in front of you in a js interview.
@PradeepKumar-ku5pe
@PradeepKumar-ku5pe 6 жыл бұрын
@ThuatNham Hey can you please share secrets to crack interview
@Tryston
@Tryston 6 жыл бұрын
They aren't very good secrets if its in a youtube video!
@sarthaknegi847
@sarthaknegi847 6 жыл бұрын
lol
@GhanshyamDobariya90
@GhanshyamDobariya90 5 жыл бұрын
You must wish, if you want to learn more 😁
@talkohavy
@talkohavy 5 жыл бұрын
I feel sorry for companies who ask these silly questions. This is the worst test possible to know if someone is an amazing programmer, a good programmer, a so so programmer, and someone who's really bad at programming that has no self awareness to how bad they really are. seriously, if it were me going through the interview, I would withdraw my application form, greet the interviewee in front of me and say "Thanks, but no thanks".
@utsavkumar4381
@utsavkumar4381 6 жыл бұрын
Thanks Sir for the videos you make. About removing duplicates, if anyone does not want to use ES6, here is how it should be done in ES5. var a = [1,2,2,3,4]; a.filter(function(value, index) { return (a.indexOf(value) == index) });
@Techsithtube
@Techsithtube 6 жыл бұрын
here i have a tutorial on how to remove duplicates multiple ways. kzbin.info/www/bejne/mqezqpWmnNBoj5Y
@thillabanyai
@thillabanyai 2 жыл бұрын
yes but he says you only have 1 line of code to solved it, and cannot use loops
@owaisali995
@owaisali995 2 жыл бұрын
and the problem with filters is it will take a lot of time to run, I mean running time is far more than SET that's why we should never use filter
@utsavkumar4381
@utsavkumar4381 2 жыл бұрын
@@owaisali995 i was not aware of this, can you explain a little more, or perhaps can share some material on this. Thanks in advance
@arcosd63
@arcosd63 2 жыл бұрын
Great video! You're a very good instructor and easy to understand as well.
@sibashishpadhy1569
@sibashishpadhy1569 Жыл бұрын
I have no words to thank you sir.... it's really really very helpful and your explanation is great🙏🙏🙏
@philsitumorang
@philsitumorang 2 жыл бұрын
Thank you so much for these tricky things! Reallly useful.
@PrashadDey
@PrashadDey 6 жыл бұрын
Great teaching! I have been searching this kind of videos for a long time. Thanks.
@DamianNAudio
@DamianNAudio 5 жыл бұрын
Reason behind "arguments" not working with arrow functions is that they take the scope of a parent block :3 so it actually shows parent function's arguments
@haul_network
@haul_network 3 жыл бұрын
time 11:45 can't we declare profile as const, instead using freeze?
@nosajghoul
@nosajghoul 6 жыл бұрын
@7:00 thats pretty interesting, and depends on the direction of associativity. < and > (I hope those show up, less than and greater than) have left-to-right associativity. = (equals sign) has right-to-left associativity, which is why we can do a = b = 4 developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Operator_Precedence
@ankush3707
@ankush3707 3 жыл бұрын
its like difference between these two .. console.log('1'+1+1)..and console.log(1+1+'1');
@Vivekkanoje1989
@Vivekkanoje1989 6 жыл бұрын
as "+" behaves as concatenate operator in first console JavaScript automatically converts int 2 to string and concatenate to result into = 22. While in second console log "-" acts as subtraction operator and converts string to integer and results to = 0.
@gyaneshsaikhedkar1536
@gyaneshsaikhedkar1536 5 жыл бұрын
Dude you killed it ... Thank you so much for the tutorial!!
@scorpio9ification
@scorpio9ification 6 жыл бұрын
Dude I love you, please keep these going
@Rockstervivek
@Rockstervivek 5 жыл бұрын
Hello. Can i say something ? You are the best teacher of JS in the whole WEB :)
@someshnukala9126
@someshnukala9126 5 жыл бұрын
Yes True. He is outstanding really
@shyam5631
@shyam5631 4 жыл бұрын
Sir, upload more videos. These videos are extremely useful. You are explaining things that people couldn't find in other tutorials.
@Techsithtube
@Techsithtube 4 жыл бұрын
Syam, I am glad that you are finding the videos very helpful. Keep I have lots of tutorials on fundamentals of JavaScript , Node, CSS , React and interview questions.
@Aj-cf6zw
@Aj-cf6zw 5 жыл бұрын
Really need to thank you for a great in-depth video , i attended a client interview and i was able to answer it because of this .
@Techsithtube
@Techsithtube 5 жыл бұрын
Glad to help out?
@subham-raj
@subham-raj 5 жыл бұрын
The second question would still take O(n) Time and space complexity, not using forloop doesn't mean that you improved it.
@ChristopherCricketWallace
@ChristopherCricketWallace 6 жыл бұрын
These are all code puzzles (not challenges) that an interviewer would use in hopes of eliminating a candidate that they've already decided they don't want but have to appear to give them a fair chance. I would not want to work with a team that codes like that. And I sure wouldn't use their application. It would have a billion bugs.
@Techsithtube
@Techsithtube 6 жыл бұрын
At my previous job, I have seen people making really silly mistakes and I realized that they never learned java Script fundamentals rather they jumped to a framework and paid the price.
@Gowaduv
@Gowaduv 6 жыл бұрын
techsith Object.freeze is not JS fundamentals, it's minitiae that should be looked up to solve a specific problem.
@AP-ny3zg
@AP-ny3zg 6 жыл бұрын
Hey @Christopher If we remove DS and Algorithm then what should be a challenges in JavaScript.
@Carl-yu6uw
@Carl-yu6uw 6 жыл бұрын
Completely agree. For instance, whilst it can be useful to immediately know intricacies of performing stupid actions in dynamically / weakly typed languages it is far better not to code yourself into them, as one will evetually catch you out! Just because the language allows something, it doesn't necessarily make it sensible to do/ use. And I would also not wish ship code that will be a maintenance nightmare.
@darrallshamarwilliams7560
@darrallshamarwilliams7560 5 жыл бұрын
Can u help me prepare for a java interview next week bro?
@sidneysouthfield844
@sidneysouthfield844 4 жыл бұрын
8:43 - me at my homie house.
@MohitFineLines
@MohitFineLines 4 жыл бұрын
Oh damn this is so tricky, then I think there should be many more tricks to ask these kind of questions. Thanks to Techsith
@roshnikutty4252
@roshnikutty4252 6 жыл бұрын
Awesome techsith!! This is very helpful.
@zhenwang7380
@zhenwang7380 5 жыл бұрын
6:16 is the {} outside the self-invoked function really needed? I tried without the {} and still, v is not defined. Nothing different from having {}. @techsith thanks
@Techsithtube
@Techsithtube 5 жыл бұрын
You can write either way actually. IIFE has multiple formats.
@vipulzambare5329
@vipulzambare5329 6 жыл бұрын
You not only taught us interview questions but also how to learn language passionately..!!
@Techsithtube
@Techsithtube 6 жыл бұрын
To learn language passionately this video might help. kzbin.info/www/bejne/jmLSnqx9dptqjMk
@gouravkhator
@gouravkhator 3 жыл бұрын
If we need a revision of JavaScript, we watch your videos and interview questions.. Thank you so much
@VinothKumar5403
@VinothKumar5403 6 жыл бұрын
as usual awesome video from techsith..keep doing your great job sir.
@sureshmg6786
@sureshmg6786 5 жыл бұрын
Day by day am becoming a pro developer watching your videos :)
@Vivekkanoje1989
@Vivekkanoje1989 6 жыл бұрын
The unique values in new array can be achieved by Set object and spread operator as following, const numbers = [1,2,2,3]; let uniqueNumArr = [... new Set(numbers)]; console.log("Unique Array : ", uniqueNumArr);
@Techsithtube
@Techsithtube 6 жыл бұрын
Yep that is the shortest way of doing it. :)
@leonkane7892
@leonkane7892 5 жыл бұрын
Isn't 4:03 the rest operator? It takes multiple elements and forms an array.
@oleksandrkovalov1543
@oleksandrkovalov1543 4 жыл бұрын
nope.. there is no such thing as 'rest operator' , there is a 'rest parameter'. visually it looks similar to 'spread' operator, which is in fact an operator..
@i5artube
@i5artube 6 жыл бұрын
After this one, I had to subscribe.
@Techsithtube
@Techsithtube 6 жыл бұрын
Thanks for subscribing!
@shripriyaprabhakar7922
@shripriyaprabhakar7922 5 жыл бұрын
Me too!
@sampa6722
@sampa6722 3 жыл бұрын
best explanations in most of the tutorials
@Techsithtube
@Techsithtube 3 жыл бұрын
Thanks for watching!
@codebite983
@codebite983 3 жыл бұрын
you are too good at explaining . how do you do this ! i understand even if it not understandable..........
@TheBadbucky
@TheBadbucky 5 жыл бұрын
does anyone know the extension for showing broken code at 9:52 in VS Code
@jorgesepulveda8380
@jorgesepulveda8380 4 жыл бұрын
for the second problem, you can convert the array to a string, remove the first number 2 with replace() and then split the resulting string back into an array nums.toString().replace(/2,/, "").split(",")
@zionsandeep788
@zionsandeep788 4 жыл бұрын
The problem involves removing duplicates. Your solution will only remove 2. It will not work for any other duplicates
@shibiyazhini8692
@shibiyazhini8692 4 жыл бұрын
Thanks for this amazing video.. I was eagerly waiting for next next questions !!!!
@samyethio
@samyethio 5 жыл бұрын
would I be wrong if I said, " nums.splice(2, 1);" for the 2nd question? you said not to use some methods, I do know which one you meant. this is one line so it should give us the desired result.
@Techsithtube
@Techsithtube 5 жыл бұрын
you can use splice. what I mean, trying out new things that you dont know may not know in an interview is a danger.
@subhasism1890
@subhasism1890 6 жыл бұрын
Great video sir.. Please keep posting such contents
@vidyashevale2904
@vidyashevale2904 5 жыл бұрын
Very important tutorial for fresher as well as experience person
@adespade119
@adespade119 5 жыл бұрын
Amazing how much I DON'T know, A great way to actually learn Javascript, or any language is to tackle questions like these, Learning New methods is never going to harm you as a programmer. I spent over ten years as a C++ programmer, one day, took an online course and realised I probably only knew about 10% - 20% of the language. Very nice video.
@andylinkOFFICIAL
@andylinkOFFICIAL 5 жыл бұрын
I wouldn't ask these types of questions in an interview. If anyone wrote code that is so ambiguous, I would question their motives
@cancanjaker1620
@cancanjaker1620 4 жыл бұрын
True. These are questions for interviews. Not really what you will encounter in a code base, because it is really testing the edge cases of JS.
@Daniel_WR_Hart
@Daniel_WR_Hart 4 жыл бұрын
@@cancanjaker1620 I find that it helps to know these quirks so that you can figure out where/how a bug happened when you do something weird like numVariable + stringVariable by accident
@cancanjaker1620
@cancanjaker1620 4 жыл бұрын
@@Daniel_WR_Hart but when writing in an actual code base, you will know the type of variables you are getting and the code written should already handle the cases properly. Also if you consider unit testing, these types of variable quirky bugs are the most easiest to weed out without having to learn about JS "weirdness". As much as I like JS and all these interesting edge cases, code writing do not require developers to answer these from memory. Good code is clear and leave little room for these fun but hair-pulling quirks.
@Daniel_WR_Hart
@Daniel_WR_Hart 4 жыл бұрын
@@cancanjaker1620 But that's not necessarily the case if you're a noob working with a team of noobs and nobody knows what unit testing is. Lately I've been working hard to get gud so that won't be an issue anymore. Also, when working on my own personal projects, whenever I need to convert a string into a number I prefer string - 0; over parseFloat(string); since it's more concise and I already know at a glance what - 0 would be used for.
@cancanjaker1620
@cancanjaker1620 4 жыл бұрын
@@Daniel_WR_Hart a noob should be learning coding best practices and writing tests instead of getting smart with using quirky language behavior. Which is why most of these interview questions are for "feel good" and ego stroking. They don't indicate a good coder or a team player. With regards to using - 0, it is concise, but the intention of the code is murky, whereas parseFloat is immediately clear to everyone even a non-JS coder. Which means you save JS coder from have to spend time thinking of what - 0 will do, and also save confusion for new coder who move over from another language.
@aishwaryshah3823
@aishwaryshah3823 4 жыл бұрын
Sir, you are grand master in JS. Thank you just keep us updating in js. 😊
@Techsithtube
@Techsithtube 4 жыл бұрын
Thank you, I will Aishwary!
@sirens003
@sirens003 6 жыл бұрын
// Keep in kind that Object.freeze(object) method is a "Shallow Freeze"! let obj = { name: 'Rango', address: { street: '33 eastbound', city: 'Toronto' } } Object.freeze(obj); obj.address.city = 'Montreal'; console.log(obj); // You will see the 'city' has been changed to 'Montreal'. // As, Object.freeze() method is a "Shallow Freeze" which will only protect upto one level deep. Hence, deeply nested Objects within that can still be modified.
@Techsithtube
@Techsithtube 6 жыл бұрын
Yep. Good solution.
@MrB_eastt
@MrB_eastt 5 жыл бұрын
Thank you so much for the video... helped me a lot.
@nirajkumarpatel6173
@nirajkumarpatel6173 2 жыл бұрын
a good set of questions well explained ty @techsith
@ZeDon140
@ZeDon140 4 жыл бұрын
Cool video. Thanks for the information!
@AmanGupta_Dev
@AmanGupta_Dev 5 жыл бұрын
The first problem you mentioned. the actual term used is Type coercion.
@MrJaw-li9vs
@MrJaw-li9vs 6 жыл бұрын
1:45 sorry its not "concatetion" but its concatenation !
@NuncNuncNuncNunc
@NuncNuncNuncNunc 5 жыл бұрын
Thank heaven's for Typescript. There was only one of these I got without thinking
@Techsithtube
@Techsithtube 5 жыл бұрын
Yes TypeScript is a blessing.
@hiteshlalwani939
@hiteshlalwani939 4 жыл бұрын
Thank you so much sir for these fantastic questions this helps me a lot
@charuhas1602
@charuhas1602 3 жыл бұрын
Thanks Sir for this video ... it really help us
@achalchoudhary9864
@achalchoudhary9864 4 жыл бұрын
Hello sir, Have you created videos in nodejs?
@avr9066
@avr9066 6 жыл бұрын
Nice one. Thank you for uploading
@xiaogangyang1045
@xiaogangyang1045 5 жыл бұрын
I would have to say, these are all basic and common questions during Chinese Internet Company interviews. The suggestion is that you need to read the book Professional Javascript.
@rubenverster250
@rubenverster250 5 жыл бұрын
xuexue
@daviddeleon3411
@daviddeleon3411 5 жыл бұрын
2:20 first I just did this let nums = [1, 2, 2, 3]; nums= [1, 2, 3]
@fazahmed4028
@fazahmed4028 5 жыл бұрын
I always try to get Why part of the answer. It makes me better developer and good at what I do at work. Its shame most people watch these tutorials for jobs! not become better.
@amitmaharana9228
@amitmaharana9228 4 жыл бұрын
Awesome video sir. Thank you
@sudhakarlahane7229
@sudhakarlahane7229 6 жыл бұрын
This is well explained excellent tutorial. In very short time you covered a lot. This is more useful beyond only pass the interviews.
@Techsithtube
@Techsithtube 6 жыл бұрын
Thanks for the nice comment :) and thanks for watching!
@KabirSarkar143
@KabirSarkar143 4 жыл бұрын
Loved and subscribed. Just one question: 8:34 - You write retrun but it still worked as if you wrote return. How?
@kramudu
@kramudu 2 жыл бұрын
Very useful information!
@ramnathan4236
@ramnathan4236 5 жыл бұрын
Awesome Sir!!
@agilewriters2233
@agilewriters2233 5 жыл бұрын
Very cool stuff!
@ogedaykhan9909
@ogedaykhan9909 4 жыл бұрын
This video was amazing!
@Anuj_Kumar_1
@Anuj_Kumar_1 5 жыл бұрын
6:32 let mean scope of the variable is in bracket or local in method..
@lohithayalavarthi7362
@lohithayalavarthi7362 6 жыл бұрын
Hi Its great thanks for teaching too instead of only giving the answers, You are letting us think, Great thanks for the videos. And if you have video on spread operator do let me know I was asked this in one of my Interview I have an obj ={ name :" likitha",age : 30 } if you want to change the name property alone to be modified ,you can use spread operator { name: "lohitha" ,...obj} ->this is the answer anyways -> {name : "likitha"} ,but I had no idea of how spread can work in different ways how do they come up with this , I know the spread operator but I am not aware of this option ..,Please do let me know..
@Techsithtube
@Techsithtube 6 жыл бұрын
I have a tutorial on applications of spread operator. THere I explain a lot about it. Please check it out.
@lohithayalavarthi7362
@lohithayalavarthi7362 6 жыл бұрын
@@Techsithtube sure
@laxmikantnimbalkar6512
@laxmikantnimbalkar6512 5 жыл бұрын
Thanks, I learnt new methods from this session.
@bitannath3515
@bitannath3515 5 жыл бұрын
Thanks a lot techsith!
@RethinkingUI
@RethinkingUI 5 жыл бұрын
Superb. Thanks Sir. Can you please do a video on typescript and es6 interview questions?
@gamberril
@gamberril 5 жыл бұрын
A lot of good quality information, well explained in a short time. Thanks! I'll subscribe
@Techsithtube
@Techsithtube 5 жыл бұрын
Thanks for subscribing.
@shyarxelil1987
@shyarxelil1987 6 жыл бұрын
Thanks for those amazing videos!!
@AnM-of4wz
@AnM-of4wz 5 жыл бұрын
Ok ..you convinced me. I'm going to subscribe.
@Techsithtube
@Techsithtube 5 жыл бұрын
Thanks buddy . keep on learning!
@rodiaz2709
@rodiaz2709 5 жыл бұрын
I loved this video, thanks !!
@sourishdutta9600
@sourishdutta9600 6 жыл бұрын
that return thing is depending on the Ts Lint or something else?
@HardwareAddiction
@HardwareAddiction 6 жыл бұрын
Not sure I understand why it would compare to -Infinity. It seems like it should see the length of arguments and return the first one if there's just one. If there are more, it should start comparing them to each other. Not sure how -Infinity logic comes into play. If you pass nothing, I'd actually expect it to return Infinity, not the opposite. I'm not sure if the way it works is based off how you do things in math or just a base assumption made by JavaScript authors.
@Techsithtube
@Techsithtube 6 жыл бұрын
Lot of things in JS is based on how JS was written. So this is one of the things.
@alokranjan476
@alokranjan476 5 жыл бұрын
Very nice video sir. Thanks a lot.
@webylancers5607
@webylancers5607 2 жыл бұрын
JazakAllah Aameen 🙏 🤲 😍
@ZIONCSMX
@ZIONCSMX 4 жыл бұрын
Nice video, just like the past one
@Techsithtube
@Techsithtube 4 жыл бұрын
Glad you liked it
@roastedchicken7254
@roastedchicken7254 3 жыл бұрын
I was asked the output of this in an interview: var arr = [1,2,3,4] for(var i=0;i { console.log("Index is: ", i) }) } - Notice the time interval isn't passed in the setTimeout function. Output turned out to be 4 times "Index is 4" . Can anyone help me understand this.
@Techsithtube
@Techsithtube 3 жыл бұрын
Because variables defined by var keywords have function scope it doesnt respect blocks scope. for loop creates a block scope and that is why its the same variable gets updated so you get 4 every time because of the closure.
@mdshoaibAlamgcetts
@mdshoaibAlamgcetts 5 жыл бұрын
An interviewer asked me to write a pseudo code for algo. I need a play song from playlist in random way in such a way that below condition 1. none of song repeat. 2. once all the song played then repeat again random process. can someone please suggest what would be the optimal solution for this approach?
@Techsithtube
@Techsithtube 5 жыл бұрын
very good question. basically you create an array with songs let songs = ['a', 'b','c','d'] then you create another array for the random songs. let rand = []; pick random number between 0 - 3 since you have 4 songs. move that index from songs to rand so now your songs have three entries. again pick from 0-2 and move that song at that index from songs to rand. and keep doing it until all the songs are moved. then play all the songs from rand which will in the random order, once you are done move them back to songs and empty the rand and then repete the process.
@mdshoaibAlamgcetts
@mdshoaibAlamgcetts 5 жыл бұрын
@@Techsithtube thank you so much sir . This is very solution .
@ajinkya2323
@ajinkya2323 6 жыл бұрын
thanks for everything ..a small request they usually interviewer ask ..where you have implemented this in project ,for closure and other things
@frontenddeveloper4542
@frontenddeveloper4542 4 жыл бұрын
Thank god u r not my interviewer.... Well I'm a new subscriber.....
@Techsithtube
@Techsithtube 4 жыл бұрын
I am a reasonable interviewer, I would never ask anything like this. Unfortunately some people do ask this kind of questions. :)
@frontenddeveloper4542
@frontenddeveloper4542 4 жыл бұрын
@@Techsithtube thank you fa ur kind reply and making these kind of videos which is really helps to me fa preparing myself to face my interviews. ..
@shailendrapathak5700
@shailendrapathak5700 5 жыл бұрын
I subscribed your channel..keep the good work 👍
@surferbum618
@surferbum618 6 жыл бұрын
Thanks for the video. It's really helpful.
@Archana1081990
@Archana1081990 5 жыл бұрын
You are great. Hats off.
@Techsithtube
@Techsithtube 5 жыл бұрын
Thanks for a nice comment archana keep on learning
@prasannanadpurohit4877
@prasannanadpurohit4877 5 жыл бұрын
Hi sir I'm biggest fan of your tutorial. Its helping us too lot to gain our knowledge. I have a doubt sir can please explain how to skip a single num from an array for example if array a[1,2,3,4,5,6] and from this if i want to skip the 3 and show remain. Thank you sir.
@Techsithtube
@Techsithtube 5 жыл бұрын
you can do let x = [1,2,3,4,5,6] x.splice(2,1) console.log(x)
@prasannanadpurohit4877
@prasannanadpurohit4877 5 жыл бұрын
@@Techsithtube thank you very much sir....😇😇
@akashpotdar6841
@akashpotdar6841 5 жыл бұрын
Amazing content..! Question: Whats the difference between object.freeze and const?
@Techsithtube
@Techsithtube 5 жыл бұрын
const wont let you replace the entire value of the object. with Object.freeze you can not change value of object properties. good question
@shailendrapathak5700
@shailendrapathak5700 5 жыл бұрын
Awesome dude..👏👏
@elEntrampe
@elEntrampe 5 жыл бұрын
great info, I learn I lot from this.
@bhagwatsagute896
@bhagwatsagute896 6 жыл бұрын
nice sir , can you please add the lecture series of interview question of javascript, HTML CSS, and PHP, and also add the lecture like top 50 or 100 php interview qauestion so that in single lecture we can get more information in details . really you are doing well. keep it up and thanks for your efforts.
@mdeekshitulu
@mdeekshitulu 4 жыл бұрын
For Q2 - is it new Set(Array)?
@Techsithtube
@Techsithtube 4 жыл бұрын
Yes, That is right. however new Set(Array) would give back a Set so we need to convert it back to the array.
@mdeekshitulu
@mdeekshitulu 4 жыл бұрын
techsith thank you. I’m trying to pause and answer the questions. Was able to go through only 2 questions only.
@34_Israel
@34_Israel 2 жыл бұрын
Amber Heard made this man become a programmer.
Tricky JavaScript interview questions and answers
21:01
techsith
Рет қаралды 133 М.
It’s all not real
00:15
V.A. show / Магика
Рет қаралды 20 МЛН
Une nouvelle voiture pour Noël 🥹
00:28
Nicocapone
Рет қаралды 9 МЛН
Top Tricky JavaScript Interview Questions and Answers
15:42
techsith
Рет қаралды 83 М.
Async Await JavaScript ES7
26:39
techsith
Рет қаралды 120 М.
Top 10 JavaScript Interview Questions ( Part 2 )
13:05
techsith
Рет қаралды 291 М.
5 Essential JavaScript Interview Questions
20:32
Coding With Chaim
Рет қаралды 93 М.
Javascript Interview Questions and Answers - Dominate Your Next Interview
1:02:33
Monsterlessons Academy
Рет қаралды 75 М.
Tricky CSS Interview Questions and Answers
13:09
techsith
Рет қаралды 43 М.
It’s all not real
00:15
V.A. show / Магика
Рет қаралды 20 МЛН