#javascript
Read more stories on Hashnode
Articles with this tag
What is an Object? Almost everything in JavaScript are objects, including arrays. If you try: console.log(typeof []); // output: object So, what...
What is an array? Let's say, you have 3 users and you want to store their names: const user1 = 'A'; const user2 = 'B'; const user3 = 'C'; What if you...
What is a function? Functions are JavaScript codes that can: Saved for later use. You can call it anytime you want. Use it multiple times. Not like...
Primitive Values A primitive is data that is not an object and has no methods. All primitives are immutable/unchangeable. 5 Types of primitive...
What are variables? We use variables to store data values. For example, we can use variables to store a user’s email address or name. In JavaScript, a...