Rahil Sarvaiya retweeted
The amazing @SimonHoiberg gave me a free one-year subscription to @FeedHive_io (worth $192) to give it away!
If you're a follower, you just have to retweet this tweet to enter the draw 🔥
The winner will be picked once I'll hit 2222 followers.
Rahil Sarvaiya retweeted
Objects are always compared by reference.
This is a tricky concept in JavaScript and we'll explore this today with an example.
What's the output of this code? [TrickyJS - 9]
(A) You are an adult!
(B) You are still an adult.
(C) Hmm.. You don't have an age I guess
Rahil Sarvaiya retweeted
It was a great time catching up with you, Rahil. I got to learn a lot from you today and I wish you the very best for the next chapter of your life.
I'm really inspired by your journey and can't wait to see what all you'll achieve. 🚀
I had a very insightful talk with @khushbooverma_ today.
Thank you for sharing information about your journey & some amazing advice on how to prepare for coding interviews.
I had a really good time & learned a lot.
Thank you for your time & good luck in your future endeavors.
Rahil Sarvaiya retweeted
We all use Google products & services multiple times a day. From sending emails to saving photos, to finding information on the web, our lives largely depend on Google.
I just finished reading The Google Story
by David A. Vise
Here's a thread on my learnings from the book ➡️
Rahil Sarvaiya retweeted
Today we will discuss a Tricky aspect of functions in #javascript
What happens when we do this? [TrickyJS - 7]
⬜ A - Nothing, this is totally fine!
⬜ B - SyntaxError. You cannot add properties to a function this way.
⬜ C - "I am a car!" gets logged.
⬜ D - ReferenceError
Rahil Sarvaiya retweeted
Software Development doesn't only involve coding. There are certain popular development principles followed by most companies.
Here are 3 of them 🧵
➡️ YAGNI - You Aren't Gonna Need It
➡️ KISS - Keep It Simple Stupid
➡️ DRY - Don't Repeat Yourself
Rahil Sarvaiya retweeted
JavaScript is a simple but tricky language.
There are lots of concepts that might seem easy at first, but when we study them in-depth, we realize it can be confusing.
Here's a compiled list of #TrickyJS questions corresponding to each JS topic.
A mega thread🧵
#javascript
Rahil Sarvaiya retweeted
Declaring variables and values to those variables in JavaScript can sometimes be tricky.
What's the output of this code? [TrickyJS-6]
⬜ A - {}
⬜ B - ReferenceError: vehcle is not defined
⬜ C - undefined
Rahil Sarvaiya retweeted
I AM SEEKING FOR FRONTEND DEVELOPER ROLE | FREELANCE JOB | INTERNSHIP 👨💻👨💻
PLEASE HELP RETWEET 🙏🙏
Rahil Sarvaiya retweeted
The great @RahilSarvaiya just crossed 400 followers.
To celebrate, he will review your twitter. You only have to reply to the attached tweet 👇. I tried it and it's has a lot of insights!
But you really should give him a follow before, so you won't miss his amazing JS content!
Rahil Sarvaiya retweeted
Getting into development will make you run into few roadblocks.
And when you’re stuck, you will inevitably need to ask for help.
The wrong way to ask for help is in a manner which shows you’ve not done your homework. The correct way is by showing you’ve exhausted all resources.
Rahil Sarvaiya retweeted
Quick #javascript Tip:
To convert float to an integer you had to use Math.floor(), Math.round() and Math.ceil() methods but you can do the conversion in a faster way by using | a bitwise OR Operator.
Rahil Sarvaiya retweeted
"How to swap two variables in JavaScript?"
This is a common interview question.
While this question might seem easy, there are actually many ways to solve this problem.
The interviewer really wants to test if you know the other ways.
Here are 5 ways to solve this question ➡️
Rahil Sarvaiya retweeted
Last week I left my job and will be pursuing my Masters in Computer Science from August.
It's now been a week of no standup calls, no meetings, no bug tickets, no code reviews, no merging PRs.
Life feels different, but I'm excited to start this new journey in my life. 🚀
Rahil Sarvaiya retweeted
Regular functions vs Arrow functions in JavaScript can be tricky.
Here's one such example
What's the output of this code? [TrickyJS - 4]
A: 25 and 20
B: NaN and NaN
C: 25 and NaN
D: NaN and 20
Rahil Sarvaiya retweeted
'var' and 'let' are both used for variable declaration in JavaScript.
There are some tricky concepts to keep in mind while using these keywords.
Let's look into one such example.
What's the output of this code?
(A) 0 1 2 and 0 1 2
(B) 0 1 2 and 3 3 3
(C) 3 3 3 and 0 1 2
Rahil Sarvaiya retweeted
It's time for another round of TrickyJS
Hoisting in JavaScript is the default behavior of moving all the declarations at the top of the scope before code execution.
What do you think is the output of the following code? [TrickyJS-2]















