In my opinion: yes, given how "objects" work in ES6. In most cases both a class and function constructor will serve the same goal, the class syntax is just a bit closer to what you can find in other languages. Just my two cents though, there might be some differences I don't know of.
Bitwise operators are indeed not that common but that's mostly because they are only useful in certain specific cases.
I am a software engineer. I love learning and sharing knowledge. I also enjoy the challenge of taking on complex projects and finding creative solutions to problems.
In my opinion: yes, given how "objects" work in ES6. In most cases both a class and function constructor will serve the same goal, the class syntax is just a bit closer to what you can find in other languages. Just my two cents though, there might be some differences I don't know of.
Bitwise operators are indeed not that common but that's mostly because they are only useful in certain specific cases.
yeap, class is more like a straightforward simpler way.
NSFW: Use cases for Bitwise operators in Js
DarkΓΈ Tasevski γ» 0 min read