@typescript For a type system, but comments are for humans.
Have another iteration for a proper extension of the ECMAScript syntax, take inspiration from other modern languages such as Rust, Dart, Swift, as well TypeScript.
I really think it could be great, but not with comment hacks! :)
@ravixfourhorn@100xcode A usual approach is to style towards your main target audience devices first, in many cases today that is mobile devices.
The main style differences for the secondary devices seem mainly layout related and possibly font size. I split CSS by those features instead of screen size.
@1297Shubham@dev_bot9190 It is a bit odd, but think of it more like all non primitive values being pointers to the objects. When you use const you basically lock the variable to always point to the same object, but the object itself is still mutable unless you freeze it.
@1297Shubham@dev_bot9190 You can use Object.freeze(array) on them to make them immutable, if they ony contains primitives, else you need to call Object.freeze recursively on objects/arrays.
@makneta For sure! Ours is a blog all about this!
It has advantages focusing as much as possible on the browser standards as those skills will be evergreen where JS frameworks come and go every year.
For an introduction, check out this article on custom elements https://t.co/Pug121ZhEo
@i_mirfaheem@TheDeveloperBot Nice! There is also a Intl.NumberFormat API that you can use to format numbers depending on which language your users are using.
We have a short article about it in case you are interested https://t.co/KWzO3apMoB
@Chrissy_codes@dev_bot9190 Welcome to a wonderful, energetic world!
A tip: focus on learning about the language itself and the underlying standards, those skills are useful for years.
Rather than spending to much time among the surface waves (frameworks and npm packages) that gets rewritten once a week.
@mhmmdbaldo Nice work @mhmmdbaldo!
To reduce a long chain of if-statements, you could create an Object that contains your dictionary of translations instead, then to a lookup in that Object, and fallback to "unknown":
Curious about HTML custom elements?
The Web Components standard has come a long way and can help to create reusable UI design systems. Here is a small guide on how to get started!
https://t.co/Pug121ZhEo
#webdevelopment#webdev#HTML#javascript#CSS#CodeNewbie#developer
A short reminder about .replaceAll, why it is helpful and the previous alternatives that needed to be used in older browsers when working with string replacement.
https://t.co/7VDfR0P3t9
#webdevelopment#webdev#javascript#100DaysOfCode
How can you delay execution of code in JavaScript? We article explaining how you can use the debounce pattern and how you can create a reusable function for it.
https://t.co/ZE3ptiN4is
#webdevelopment#webdev#javascript#100DaysOfCode
@K4Koding@TheDeveloperBot Hi @K4Koding!
My tips is to learn each language by coding a lot yourself, find fun challenges. Fun repetiton helps improves your skills over time.
We have a blog with short tricks and longer tutorials around JavaScript/HTML/CSS you can check it out at https://t.co/HjdeJOvNYp
Working with dates in JavaScript can be a challenge, often libraries are used. But you can really do most date related things with the browser native API. Here is how to add or subtract from dates.
https://t.co/jegCRWQ4d2
#JavaScript#webdevelopment#webdev
Node.js has greatly improved support for standard imports during the last few years. But they also added some additional Node.js specific features. Read more about protocol imports here.
https://t.co/xNoa4FDzhE
#JavaScript#Nodejs#import#webdevelopment#webdev
๐ Learn Lit 2 ๐
Lit 2 doesn't require a compiler to get started or to have A+ dev, but TS can make it a lot easier!
Learn w/ our editable code samples at https://t.co/fxIiqb85qV in both JS & TS
Join our Lit 2 release stream on September 21@10am PDT:
https://t.co/4qAP7MiiHo