Skip to content

Commit 8e71304

Browse files
Update README.md
1 parent 4498c59 commit 8e71304

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,15 @@ This provides a number of advantages:
1313

1414
Happy reading and practicing!
1515

16+
17+
## Types and Type Coercion
18+
JavaScript has 2 data types: primitives and objects.
19+
There are 7 primitive data types: string, number, bigint, boolean, null, undefined, and symbol.
20+
21+
[Type coercion](https://medium.freecodecamp.org/js-type-coercion-explained-27ba3d9a2839) is the process of converting value from one type to another. An object is converted to a primitive, which is then converted to the final type. Type coercion will transform a value to string, boolean, or number. Values can be converted explicitly, or implicitly by operations between different types or by the surrounding context.
22+
23+
The strict equality (===) doesn’t trigger type coercion, while the loose equality operator (==) does type coercion if needed, and then compares.
24+
1625
## Functional Programming
1726
[Functional programming](https://medium.com/javascript-scene/master-the-javascript-interview-what-is-functional-programming-7f218c68b3a0) is a programming paradigm. It builds software by composing pure functions, avoiding shared state, mutable data, and side effects. Functional programming is declarative rather than imperative, and application state flows through pure functions.
1827

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy