Тёмный
Mayank Srivastava
Mayank Srivastava
Mayank Srivastava
Подписаться
Hi, I am a professional software developer specializing in creating web services.
I created this channel to share concepts and tutorials around the popular frameworks and practices that I have learned over the span of my career.
For any inquiries please reach out to me via my email link below.
Комментарии
@osinachiibiam-uro8432
@osinachiibiam-uro8432 12 часов назад
Thank you so much for this video!
@MayankSrivastava
@MayankSrivastava 12 часов назад
Glad it was helpful!
@VC-dm7jp
@VC-dm7jp 7 дней назад
Beautifully explained
@MayankSrivastava
@MayankSrivastava 12 часов назад
Thank you so much 🙂
@SalmanIqbal-kr8mh
@SalmanIqbal-kr8mh 11 дней назад
Dear Sir you fetch customer id api can you make products small video that create custom api in api folder and fetch internal api and show in browser just 3 or 4 items fetch i tried alot of videos everyone fetching external apis only 1 youtuber create custom api and fetch internal api but i donot understand can you make?
@rakeshrout2719
@rakeshrout2719 13 дней назад
Great!!!
@OscarRosner
@OscarRosner 29 дней назад
amazing video.
@ryanwoods3333
@ryanwoods3333 Месяц назад
thank you!!
@rohn3711
@rohn3711 2 месяца назад
connection.query takes two arguments one is query and another one is callback. So now tell me what will be the internal implementation of query() method. Because for learning purpose you take setTimeout which is internally asynchronous and we don't know its internal implementation we just pass time in ms so after that fixed time it gets executed. But in case of querying db you never know how much you need where you can't pass fixed time before it's execution cause you don't know the time it takes. So do you know how that thing is handled asynchronously ?
@Comrade_is_here
@Comrade_is_here 2 месяца назад
It shows unauthorised wt we can do
@MayankSrivastava
@MayankSrivastava 2 месяца назад
you can also check if the array stack is empty by simply checking if its length property is 0
@cr7924
@cr7924 3 месяца назад
could not have predicted this js behavior
@cr7924
@cr7924 3 месяца назад
super helpful
@mastermindmastermind4695
@mastermindmastermind4695 3 месяца назад
Areeeeeeeyyyyyy😂
@neilaryaofficial
@neilaryaofficial 3 месяца назад
Are are 😂
@__Var.sha__
@__Var.sha__ 3 месяца назад
Very informative
@5e4-likitha31
@5e4-likitha31 3 месяца назад
For the output iam getting a json object .like the keynames are converted into strings.could you clear this?
@MayankSrivastava
@MayankSrivastava 3 месяца назад
do not forget to parse the JSON here
@ExMuslimProphetMuhammad
@ExMuslimProphetMuhammad 3 месяца назад
Interesting
@ReTroIIer
@ReTroIIer 3 месяца назад
0:10 Here is another "easy" question of this BS category: You have a linkedlist, check if there are cycles in. Pretty easy right? Now do it without storing any of the nodes in a temporary variable and just by iterating the list. Hint: it took people years to find that solution. Asking such kinds of questions in an interview shows what the company really is, BS..
@hedigamingfortnite6626
@hedigamingfortnite6626 3 месяца назад
Hey Mayank i love your work keep it ! Btw i founded a startup and we are looking for a dev ! If you are intersted give me where to contact you.
@MayankSrivastava
@MayankSrivastava 3 месяца назад
@hedigamingfortnite6626 you can reach out to me on my mail mayank7924@gmail.com, my LinkedIn profile is also linked to my channel
@Ascyt
@Ascyt 3 месяца назад
Honestly though, what's the point? What's so bad about just using a third variable?
@MayankSrivastava
@MayankSrivastava 3 месяца назад
apart from being a common interview question, it also makes the code more lean
@user-eo4di5tn4j
@user-eo4di5tn4j 3 месяца назад
good content bruh keep going
@MayankSrivastava
@MayankSrivastava 3 месяца назад
Thanks, will do!
@MayankSrivastava
@MayankSrivastava 3 месяца назад
Swapping values using arithmetic ru-vid.com7ofSnz0Fe6E?feature=share
@ककककततत
@ककककततत 3 месяца назад
storage is cheaper than processing power.. too many processing steps
@MayankSrivastava
@MayankSrivastava 3 месяца назад
true, but also as a side note: in JS there is a simpler way to swap variables using destructuring
@MayankSrivastava
@MayankSrivastava 4 месяца назад
Microtask queue was introduced in the ES6 revision of javascript in the year 2015.
@mahammadali4680
@mahammadali4680 4 месяца назад
thanks
@MayankSrivastava
@MayankSrivastava 3 месяца назад
You're welcome!
@aakashsrivastava5557
@aakashsrivastava5557 4 месяца назад
Thank You Mayank :)
@MayankSrivastava
@MayankSrivastava 3 месяца назад
Welcome!
@mohammedputhawala5055
@mohammedputhawala5055 4 месяца назад
Learned something new, thanks !
@MayankSrivastava
@MayankSrivastava 4 месяца назад
Glad to hear
@elco7956
@elco7956 4 месяца назад
Also try the npm ls <package_name> command
@MayankSrivastava
@MayankSrivastava 4 месяца назад
will give a try
@MayankSrivastava
@MayankSrivastava 4 месяца назад
A fix was proposed for ECMAScript but it was rejected. It would have made the type of null = 'null'.
@dhirenpathak
@dhirenpathak 5 месяцев назад
nice
@MayankSrivastava
@MayankSrivastava 4 месяца назад
Thanks
@IIInvokeII
@IIInvokeII 5 месяцев назад
Can you unfreeze the same?
@MayankSrivastava
@MayankSrivastava 5 месяцев назад
There is no way to unfreeze the object. You will have to create a copy and modify it instead.
@mhhamzaedits
@mhhamzaedits 5 месяцев назад
3
@MayankSrivastava
@MayankSrivastava 5 месяцев назад
that's correct
@MayankSrivastava
@MayankSrivastava 5 месяцев назад
Go watch my new video on deploying Next.JS apps on the web: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-ACYbIVvdPq0.html
@MayankSrivastava
@MayankSrivastava 5 месяцев назад
Go watch now, deploying this Next.JS app on Vercel: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-ACYbIVvdPq0.html
@sumitsakpal7085
@sumitsakpal7085 5 месяцев назад
yes because of length is a string built in property 'apple'.length or 'apple'.['length'] both are same
@MayankSrivastava
@MayankSrivastava 5 месяцев назад
that's correct
@InamKhan-b1h
@InamKhan-b1h 5 месяцев назад
sir please hindhi ma bhi lao
@MayankSrivastava
@MayankSrivastava 5 месяцев назад
will think about creating a separate hindi channel
@SumitSingh-wz3wt
@SumitSingh-wz3wt 5 месяцев назад
Please try to implement refresh token on server side next.js app router.
@MayankSrivastava
@MayankSrivastava 5 месяцев назад
sure, can you send more details about the auth flow?
@SumitSingh-wz3wt
@SumitSingh-wz3wt 5 месяцев назад
@@MayankSrivastava Let suppose we fetched the data from API on server side but we got unauthorised 401 error from backend. Then we can call the refresh token api but we can't set the new access token in cookies or nex-auth session as this is not allowed. It can be done only on client side but in case of client side then the page will not be server side rendered.
@cr7924
@cr7924 5 месяцев назад
keep the shorts coming
@sasikaadesh8184
@sasikaadesh8184 6 месяцев назад
Thank you so much for the clear explanations on some of the important topics in JavaScript. Please do more videos. Thanks.
@MayankSrivastava
@MayankSrivastava 6 месяцев назад
More to come!
@alvaronaffa6150
@alvaronaffa6150 7 месяцев назад
Great video 👏
@MayankSrivastava
@MayankSrivastava 6 месяцев назад
Thank you!
@ThanHtutZaw3
@ThanHtutZaw3 8 месяцев назад
I was using Nextjs Page dir ssr with redux toolkit , next redux wrapper and I don't get data as initial data from SSR .I get value console in terminal but I can't access it from ssr component
@rrrajsrivastava
@rrrajsrivastava 8 месяцев назад
Dumb question from my side❓ Can this be called a DNS attack?
@MayankSrivastava
@MayankSrivastava 8 месяцев назад
dns attacks are focused on overloading the server, here we overloaded the client side
@melodydean3437
@melodydean3437 8 месяцев назад
P r o m o S M
@anandbaraik5010
@anandbaraik5010 8 месяцев назад
How will you copy functions(regular) and class as well?
@MayankSrivastava
@MayankSrivastava 8 месяцев назад
In such cases we will have to add an additional case to copy function as it is
@anandbaraik5010
@anandbaraik5010 8 месяцев назад
@@MayankSrivastava can you update your code for it. I tried but couldn't write a proper case for these. Used "new Function" method for copying function but it doesn't work for arrow functions
@pranavrajveer6425
@pranavrajveer6425 8 месяцев назад
This is a single level env, not a multple level
@yusufkhan-ww7vr
@yusufkhan-ww7vr 8 месяцев назад
awsome bro
@MayankSrivastava
@MayankSrivastava 8 месяцев назад
glad it was helpful
@Mohit-bk4nu
@Mohit-bk4nu 8 месяцев назад
I dont want to build it with node modules, how do I do it?
@MayankSrivastava
@MayankSrivastava 8 месяцев назад
Only option will be then to not use any third party libraries
@d3.finance
@d3.finance 8 месяцев назад
Super helpful. Thank you!
@MayankSrivastava
@MayankSrivastava 8 месяцев назад
Glad it was helpful!
@mohdquadir3234
@mohdquadir3234 9 месяцев назад
Hey hi mayank sir great explainarions thanks. Make videos more and more.
@MayankSrivastava
@MayankSrivastava 8 месяцев назад
I will try my best
@romanmed9035
@romanmed9035 9 месяцев назад
use it for next 13.5.5?
@MayankSrivastava
@MayankSrivastava 8 месяцев назад
making a video for it soon
@romanmed9035
@romanmed9035 8 месяцев назад
@@MayankSrivastava many thanks.
@bhagyahegde7036
@bhagyahegde7036 9 месяцев назад
I want to call cdn links for css and script inside next.config.js. How to configure ? Incase of nuxt.config we had head{link:..., script:[]} How should i configure here ?
@MayankSrivastava
@MayankSrivastava 8 месяцев назад
NextJS has a Head component where you can define these