Code Tidbit is back!!! 

Now that my site is finally complete. I can return to bringing you NEW code tidbit every week, YAY
You can also suggest tidbit topics you want me to cover. Simply create a ticket on my GitHub page:
https://github.com/samanthaming/samanthaming.com/issues/new?assignees=samanthaming&labels=&template=topic-suggestion.md&title=%5BTopic+Suggestion%5D …
-
-
Prikaži ovu nitHvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi
-
-
-
Wait really?? Definitively been tricked by my IDE to think I couldn't

-
Don’t listen to it
this is absolutely legit 
Kraj razgovora
Novi razgovor -
-
-
@samantha_ming Just to mention. As of ES 2019 you can use Nullish coalescing for default values. For example: const foo = 'value' ?? 'default string'; (meaning if foo is undefined or null fall back to the default string. More information:https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Nullish_coalescing_operator … -
You read my mind Max! I was so close to covering this! But I thought maybe it’s better I wait until it’s official (it’s still at stage 3
)
But let me add this to my notes! Thanks for sharing 
Kraj razgovora
Novi razgovor -
-
-
Old way is typically: var drink = drink || 'beer': ^ thar does not work identically for drink === null; but that edge case is most of the time irrelevant.
-
That was a super popular way for sure! I just wanted it to align the new way which only capture just the undefined. Thanks for sharing, let me add that to the list

- Još 2 druga odgovora
Novi razgovor -
Čini se da učitavanje traje već neko vrijeme.
Twitter je možda preopterećen ili ima kratkotrajnih poteškoća u radu. Pokušajte ponovno ili potražite dodatne informacije u odjeljku Status Twittera.
New JS, HTML, CSS tidbit Every Week
Frontend Engineer
Check out my NEW site!