DEV Community

Mehul Lakhanpal profile picture

Mehul Lakhanpal

Full stack Developer | Micro-blogging on Web Development at codedrops.tech | Creator of File Ops, Note Box, GitHub Marker

Work

Full stack developer

All 69 comments

useToggle: Custom react hook for toggle

Great. Thanks for the suggestion and the efforts to update th...

12 Best VS Code Extensions To Enhance Your Productivity

Hey, I created File Ops - A VS Code extension to easily tag/a...

I made an app for Web Developers!

Hey, I created Note Box - A chrome extension to add notes bas...

41 Must have chrome extensions for Developers and Productivity

Hey, I created Note Box - A chrome extension to add notes bas...

Custom util to get weekday name or number

Great i did not know that. Thanks πŸ˜€

10 Google Chrome Extensions you should use as a developer

Hey all, I released 'Note Box' - A chrome extension to add no...

CSS class to add margin for all child elements

Yes I know. Its works the same way with css grids. I am sayin...

CSS class to add margin for all child elements

Thanks for pointing it out. But to add any other styles the u...

File Ops - A VS Code extension to easily tag/alias files & quick switch between files

Sure, will add that in future release

12 Chrome Extensions I Actually Found Useful

Thanks :)

15 useful VS Code extensions for front-end development

Hey Duomly, I launched File Ops - A VS Code extension to easi...

12 Chrome Extensions I Actually Found Useful

Hey, I launched Note Box - A chrome extension to add notes/to...

A single function to add, update, read & delete from an array

Hmm... Depends on your perspective 🀘

πŸŽ‰ Product Launch - "Note Box" Chrome Extension πŸŽ‰

Thank you so much Sylwia πŸ˜‡

What's the output?

What help do you need?

What's the output?

Thanks :)

Destructuring `array`

Agree

Pretty print using JSON.stringify()

Offcourse πŸ˜€

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 ...

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...