Pinned Tweet
#100DaysOfCode letโs get connected,
Drop a ๐ and retweet for better reach.
#Coding #Developers #softwaredevelopment
Crazy Tech ๐ฅ retweeted
Thanks to everyone who came out to the Angular March 2023 meetup! We hope you had a great time and took away some valuable insights. Your support means everything to us, and we can't wait to see you at the next event!
@tuantrungvo @eileenthedev @pankajparkar
Single line code to remove duplicate from Array in #javascript
Create a Set from the existing Array, Since Set holds only unique values it'll remove all duplicates.
#100DaysOfCode #DSA
Crazy Tech ๐ฅ retweeted
Want a job in tech? ๐ฐ
Having a personal website can help you stand out!
Here are 10 free website templates ๐
Just got to know today that, We can make web page responsive with media query also
#webdev
#javascript Tip:
structuredClone() can be used to a deep copy of objects instead of JSON.stringify()
It uses "The structured clone algorithm" internally, and it can handle circular dependency where JSON.stringify() throws an error
ref: mzl.la/3L4zGAi
How to use it?
2
Is anyone ready to give or take a mock interview on JavaScript?
#interview #javascript #mockinterview
Given a string S, check if it is palindrome or not.
if true return 1 else 0
Single line #javascript solution.
#100DaysOfCode
2
No of Trailing zeros in a n!
#Mathematics problem: zero can be formed with the combination of 2*5, and there will be always more no of 2's than 5.
So find the no of 5's and that will be the ans.
Note: take care of multiple 5's like in 25 (5*5)
#javascript #100Devs #coding
#BitManipulation #javascript #100Devs
XOR => n^n = 0
when we do XOR with the same number it becomes zero.
Same thing we can use to find the non-repeating number from the array.
3
#javascript: Tip of the Day
You are given an obj like below
How do you protect your object, so that I don't modify it? (1/2)
Hint: freeze / seal
1
The difference between freeze and seal is that, in freeze, you can not modify an object but in seal, you can update existing values.
both protect your object from being added new key-value.
Check this for more details: developer.mozilla.org/en-US/โฆ
#javascript #100DaysOfCode #100Devs
1
3
You can also define properties for a particular key like below.
Chekc it out: medium.com/@ayusharma.in/objโฆ
1
#javascript
How to make a copy of the Object?
If you run the below code, you get that object b still holds the reference to c, thus the result.
This is called shallow copy, which works only on level1.
How to fix it? 1/2
1
1
To fix it you need to do a deep copy, two ways to do it.
First: loop through recursively and copy
Second: using JSON stringyfy๐
#javascript #100DaysOfCode #100Devs
Are you using rxjs?
If yes, check it out rxjs-fruits.com/filter
a fun way of learning and clearing doubts which will stay in mind for a long time.
If you have something like this share the link
#rxjs #webdev #100devs

















