Coding in JavaScript (@gojavascript) profile picture
Joined August 2019
Coding in JavaScript retweeted
Just came across this interesting #JavaScript behavior example: ("b" + "a" + + "a" + "a").toLowerCase(); // "banana" Explanation: Step 1: "b" + "a" = "ba" Step 2: "ba" + (+"a") = "ba" + NaN = "baNaN" Step 3: "baNaN" + "a" = "baNaNa" Step 4: "baNaNa".toLowerCase() = "banana"
1
5
11
Coding in JavaScript retweeted
Learning #JavaScript feels like: Lesson 1: 1 + 1 = 2 Lesson 2: 2 * 2 = 4 Lesson 3: \pi=\sum_{n=0}^\infty(-1)^n\frac{4}{2n+1}
48
233
42
1,281
Coding in JavaScript retweeted
Stop copying/pasting code and start typing it. I did this far too often when starting out. Seeing how each line or block of code is affecting your project can really help things click.
8
45
7
186
Coding in JavaScript retweeted
Today we’re releasing a brand new version of React DevTools, rewritten from scratch for new features and better performance. Read all about it in the new blog post by @brian_d_vaughn! nitter.gq/brian_d_vaughn/status/…
17
758
40
2,305