Skip to content

Commit 9e5e838

Browse files
feat: add difference between properties and methods
1 parent d8ca625 commit 9e5e838

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// INFO: Difference between Properties and Methods in JavaScript
2+
3+
4+
// Properties are static values tied to a string (e.g., .length). You access them - you don't call them.
5+
6+
7+
// Methods are functions that you call on strings to perform actions (e.g., .toUpperCase()).
8+
9+
10+

0 commit comments

Comments
 (0)