Skip to content

Commit e10e04c

Browse files
feat: add node.js vs browser
1 parent 553a657 commit e10e04c

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
/*
2+
INFO: Browser (Client-Side JavaScript)
3+
JavaScript running in the browser, mainly used to build UI, interact with the DOM, and handle user events.
4+
1. Executes in Chrome, Firefox, Safari, etc.
5+
2. Can directly interact with HTML, CSS.
6+
3. Limited access to OS-level resources (for security)
7+
*/
8+
9+
/*
10+
INFO: Node.js (Server-Side JavaScript)
11+
A runtime environment that allows javascript to run outside the browser, commonly on the server.
12+
1. Built on Chrome's V8 engine.
13+
2. Enables file system access, networking, database, and more.
14+
3. No access to DOM or window
15+
*/
16+
17+

0 commit comments

Comments
 (0)