
Talks about #Javascript, #React, #Node #Express, #MongoDB
Guwahati
Joined November 2023
- Tweets462
- Following681
- Followers335
- Likes6.9K
Robin retweeted
I spent 4+ hours studying how Zapier automates a billion tasks, so you don't have to.
Here's a summary of what I learned:
Leaning Thread: About slice method in JavaScript:
The slice() method is a built-in JavaScript function that returns a shallow copy of a portion of an array into a new array object.
1
3
132
#4
The end parameter is the zero-based index at which to end extraction. slice() extracts up to but not including end. If negative, it counts back from the end of the array.
1
2
69
#5
The slice() method returns a new array containing the extracted elements. It does not modify the original array.
2
61
🧵 Let’s talk about two powerful array methods in JavaScript: array.find() and array.filter(). They’re both used to search through an array, but they have different use cases and return different results. Let’s dive in! 👇
1
2
84
In filter(), the whole array is iterated despite the fact that the element being searched for is present at the beginning. But in find(), as soon as the element that satisfies the condition is found, it gets returned.
1
1
28
#4
The searchParams object is an instance of the URLSearchParams class, which provides methods to work with the query string of a URL
1
1
33
#5
You can use various methods provided by the URLSearchParams class to work with this data, such as get(), getAll(), has(), set(), delete(), and more.
26
Learning thread:
#1
Just learned about useSearchParams in react-router-dom today! It’s a hook used to read and modify the query string in the URL for the current location.
#React #JavaScript #WebDevelopment
2
2
82
#3
Just like React’s useState hook, setSearchParams also supports functional updates. This means you can provide a function that takes the current state and returns an updated version. #React #JavaScript #WebDevelopment
1
1
20
#2
searchParams is an object that contains the current location’s search parameters, and setSearchParams is a function that can be used to update them. #React #JavaScript #WebDevelopment
1
19
Robin retweeted
Everyone should adopt the 2 simple rules to live life:
1. Go jim.
2. Know something in your domain that you weren't aware of yesterday, no matter how big or small.
Robin retweeted
Be the best version of yourself:
Wake up!
Grind bad enough to mentally and physically exhaust yourself completely.
Hit the bed and your body would thank you by sleeping within seconds.
Let's go!



