Week 3 Day 1: JavaScript functions and objects
This commit is contained in:
31
Week-3/Day-1/Javascript-notes.md
Normal file
31
Week-3/Day-1/Javascript-notes.md
Normal file
@@ -0,0 +1,31 @@
|
||||
## JavaScript Functions
|
||||
Functions are reusable blocks of code used to perform a specific task.
|
||||
|
||||
### Types of functions:
|
||||
- Function Declaration
|
||||
- Function Expression
|
||||
- Arrow Functions (ES6)
|
||||
|
||||
### Benefits:
|
||||
- Code reusability
|
||||
- Better structure
|
||||
- Easier debugging
|
||||
|
||||
## JavaScript Objects
|
||||
Objects store data in key–value pairs.
|
||||
|
||||
const user = {
|
||||
name: "Harshit",
|
||||
role: "Intern",
|
||||
skills: ["HTML", "CSS", "JS"]
|
||||
};
|
||||
|
||||
### Object concepts:
|
||||
- Properties
|
||||
- Methods
|
||||
- Access using dot and bracket notation
|
||||
|
||||
### Practical Learning
|
||||
- Created reusable functions
|
||||
- Accessed object properties
|
||||
- Used functions inside objects
|
||||
25
Week-3/Day-1/Readme.md
Normal file
25
Week-3/Day-1/Readme.md
Normal file
@@ -0,0 +1,25 @@
|
||||
# Week 3 – Day 1
|
||||
## Advanced JavaScript – Functions and Objects
|
||||
|
||||
### Date
|
||||
29 December 2025
|
||||
|
||||
### Objective
|
||||
To understand JavaScript functions and objects for writing modular and structured code.
|
||||
|
||||
### Topics Covered
|
||||
- Function declaration and usage
|
||||
- JavaScript objects
|
||||
- Object properties and methods
|
||||
|
||||
### Activities Performed
|
||||
- Practiced creating functions
|
||||
- Worked with objects and methods
|
||||
- Executed JS code in browser console
|
||||
|
||||
### Learning Outcomes
|
||||
- Improved understanding of reusable logic
|
||||
- Learned object-oriented basics in JavaScript
|
||||
|
||||
### Status
|
||||
Completed
|
||||
Reference in New Issue
Block a user