Back to articles
If You Don’t Know These Array Methods, We Need to Talk.

If You Don’t Know These Array Methods, We Need to Talk.

via Dev.to JavaScriptKunal

Hi everyone ! In this blog , we will discuss about Array and its method in JavaScript that commonly used nowadays that will help you to improve your production code and expand your knowledge . Topics to Cover : Datatypes What is Array and why to use it Array methods : push() and pop() shift() and unshift() map() filter() reduce() (basic explanation only) forEach() Datatypes In JavaScript , Datatypes defines what kind of value you can hold inside a variable . Think of data types like different types of containers in real life : A water bottle holds water A wallet holds money A folder holds document There are 8 different kind of datatypes in JavaScript . 1. String :- Text inside quotes eg:- let name = "Like this blog" 2. Boolean :- Only two values eg:- True , False 3. BigInt :- For very very large numbers. eg:- let bigNumber = 12345678901234567890n; 4. Number :- Any normal number. eg:- let marks = 95; let price = 99.99; 5. Undefined :- When a variable and no value is given eg:- let x; 6.

Continue reading on Dev.to JavaScript

Opens in a new tab

Read Full Article
4 views

Related Articles