Back

Shubham

Fearlessย โ€ขย 6m

Day 05/21 โ€“ JavaScript Functions & Methods Today I explored one of the most powerful concepts in JavaScript: Functions & Methods. ๐Ÿš€ ๐Ÿ”น Functions are blocks of code designed to perform a specific task. They help in reusability and make code cleaner. function greet(name) { return `Hello, ${name}!`; } console.log(greet("Shubham")); // Output: Hello, Shubham! ๐Ÿ”น Methods are functions inside objects, tied to data. Example: let user = { name: "Shubham", greet() { return `Hello, ${this.name}!`; } }; console.log(user.greet()); // Output: Hello, Shubham! ๐Ÿ‘‰ Functions = Independent tasks ๐Ÿ‘‰ Methods = Tasks attached to objects Mastering them is essential for writing scalable JavaScript code! ๐Ÿ’ก #21JavaScript #JavaScript #CodingJourney #LearnInPublic #CodeNewbie #WebDevelopment

Reply
1

More like this

Recommendations from Medial

Shubham

Fearlessย โ€ขย 6m

Day 09/21 โ€“ JavaScript Classes & Objects Today I explored Classes & Objects in JavaScript โ€“ the building blocks of Object-Oriented Programming (OOP). ๐Ÿš€ ๐Ÿ”น Objects = collections of data & methods ๐Ÿ”น Classes = blueprints to create objects Example:

See More
Reply
8

Shubham

Fearlessย โ€ขย 6m

๐Ÿš€ Day 2 of 21 โ€“ JavaScript Learning Journey Topic: Operations & Conditional Statements ๐Ÿ”น Operations in JavaScript Arithmetic: + - * / % Assignment: = += -= Comparison: == === != > < >= <= Logical: && || ! ๐Ÿ”น Conditional Statements // if sta

See More
1 Reply
1
16

Shubham

Fearlessย โ€ขย 6m

Day 10/21 โ€“ JavaScript: Callback, Promise & Async/Await Today I learned how JavaScript handles asynchronous tasks like API calls, file loading, or timers. โšก ๐Ÿ”น Callback โ€“ a function passed into another function function fetchData(cb) { setTimeou

See More
Reply
1

Shubham

Fearlessย โ€ขย 5m

Day 11/21 โ€“ JavaScript API Calls ๐ŸŒ Today I explored how to fetch data from APIs in JavaScript using async/await. Copy code Javascript async function getUsers() { try { let response = await fetch("https://jsonplaceholder.typicode.com/users");

See More
Reply
3

Shubham

Fearlessย โ€ขย 6m

๐Ÿš€ Day 3/21 โ€“ My JavaScript Learning Journey Today I explored two core concepts: Loops & Strings. ๐Ÿ”น Loops in JavaScript for โ†’ classic loop with index. while โ†’ runs until a condition is true. do...while โ†’ executes at least once. for...of โ†’ best

See More
Reply
6

Prince Singh Chouhan

Front-end Developerย โ€ขย 1y

#Array in #javascript: Array in Javascript enables storing a collection of multiple items under a single variable name, and has members for performing common array operations. Arrays aren't primitives but are instead Array #objects with the followin

See More
Reply
2

Shubham

Fearlessย โ€ขย 6m

๐Ÿš€ Day 4/21 โ€“ My JavaScript Learning Journey Todayโ€™s focus: Arrays in JavaScript ๐Ÿ“ฆ An Array is a special object in JS used to store multiple values in a single variable. ๐Ÿ”น Creating Arrays let fruits = ["Apple", "Banana", "Mango"]; ๐Ÿ”น Common Me

See More
Reply
5

Muttu Havalagi

๐ŸŽฅ-๐ŸŽต-๐Ÿ-โšฝ "You'll N...ย โ€ขย 1y

1. Python: - History: Python was created by Guido van Rossum and was first released in 1991. Its design philosophy emphasizes code readability and its syntax allows programmers to express concepts in fewer lines of code. - Unique Fact: The name

See More
Reply
1

Yash Deshmukh

Python-Driven Develo...ย โ€ขย 8m

๐Ÿš€ Hello World! Iโ€™m Yash Deshmukh โ€” Python Developer | ML Enthusiast | Backend & Frontend Builder Iโ€™m excited to officially introduce myself to this incredible tech community! With a strong grip on Python, I specialize in: ๐Ÿ”น Automation โ€“ simplify

See More
Reply
7

Aryan Nagori

ย โ€ขย 

Siddhrans Technologiesย โ€ขย 8m

๐Ÿš€ Advanced Java Course Progress: Week 2 Completed! Thrilled to share my progress on GeeksforGeeks - Advanced Java course! Week 2 was all about bringing OOP concepts to life: ๐Ÿ”น Classes & Objects โ†’ Building blocks of my code ๐Ÿ”น Encapsulation โ†’ Kee

See More
Reply
1

Download the medial app to read full posts, comements and news.