loading...
Mehul Lakhanpal profile picture

Mehul Lakhanpal

Javascript Developer | Learn daily at codedrops.tech | Micro Learning

Work

Full stack developer

All 51 comments

18 tips/tricks for Junior JavaScript Developer

Sure, no problem.

9 Simple logical questions for JavaScript beginner's

Thankest You XD

10 JavaScript Interview Questions

In the second example, The callback functions are asynchronou...

try..catch..finally - Real example

You need it in try also then. And btw just an example. What i...

try..catch..finally - Real example

In finally block you can perform things in all the cases. An ...

What changes can be made with `const`

See no turns to an expert at day 1. People have to then under...

What changes can be made with `const`

Definitely. But when a person starts out you can't explain in...

New Number() is truthy or falsy?

new Number() creates a object wrapper. So it turns out to be ...

Prevent an object's properties value from updating

Yes, but there is a small difference between all of them. Hav...

Check if a value is an array

Thank u 😊😊

Array.every()

Haha.. But it might be of use someday πŸ˜…

What's the output?

Correct πŸ‘

What's the output?

Correct πŸ‘

Run a React app bootstrapped using cra on a different port

Hey, I am really sorry. This method does not work on windows....

Swap two numbers without using a temporary variable

I too feel it has no real-world application. Limited memory w...

Convert array to object using reduce()

Thanks Mauro for the explanation

Run a React app bootstrapped using cra on a different port

It's cross platform πŸ”₯πŸ‘

What's the order of execution?

Awesome πŸ”₯πŸ˜„

Complete the function without using loops and conditions

Awesome πŸ”₯πŸ‘

What's the output? Hoisting question

No problem. Everyone was at situation once πŸ˜€

What's the output? Hoisting question

It is hoisting too. And the answer is 10

Clone an object or array (Shallow Cloning)

Oh yes, I forgot to mention its shallow cloning. I have a pos...

Live preview of react-app onΒ mobile

Awesome πŸ”₯πŸŽ‰

Add properties to functions

Yes, I am focusing on short articles only. Anyways thanks for...

What's the output?

Ok, so due to hoisting, the variables are put first followed ...

How Do You Use Instagram As A Developer?

I post on web development in general. Here is my account - co...

What's the output?

πŸŽ‰

The World famous javascript interview question

Good explanation but its wrong. var is scoped functionally an...

Pick a random element from an array

Ik could have picked a random element up to array's length :p

null vs undefined

Sure, let me know.

Arrays and objects are stored by reference

return && break && throw new Errror('βœ‹');

Arrays and objects are stored by reference

Ok if they are the same as othere then why are the array not ...

Arrays and objects are stored by reference

Because I want to know what is a better way. Everyone is not ...

Arrays and objects are stored by reference

What is it then? And btw, this is how someone would explain t...

Arrays and objects are stored by reference

But 'Javascript has object references' also sounds confusing ...

Capitalize the first letter of every word

I really liked this solution. Thanks for writing it.

Capitalize the first letter of every word

That's awesome. Hell lot of differenceπŸ”₯

Capitalize the first letter of every word

Lol. I made 2 typos actually. Got to know it now πŸ˜‚πŸ˜‚ thanks th...

Capitalize the first letter of every word

Sure, there are tradeoffs with every solution.

Hard truth about `null`

typeof null is object, but null does'nt have object as protot...

Hard truth about `null`

There is no body. Just printed out null problems XD

Hard truth about `null`

Lol. I didn't find on my own. I read it somewhere

Hard truth about `null`

null is mad. It's not equal to zero but it's greater than or ...

Reload a webpage

Wow 500+ ways to just reload..🀯

Problem with the string 'false'

Haha... Nice one πŸ˜‚

Problem with the string 'false'

πŸ‘πŸ‘

Problem with the string 'false'

Specially javascript. Difficult to understand truthy and fals...

Problem with the string 'false'

Angular js?

Problem with the string 'false'

Awesome. Dint know that. I actually faced the issue in query ...

Check if an object is empty

I don't know. Depends on the situation.

Check if a property exists in an object

Nice I didn't know that 'in looks up the chain. Good to know ...

loading...