Day 25 of #100DaysOfCode – JavaScript Basics Today’s session with Harsh Vandana Sharma from Sheryians Coding School and Sheryians Coding School Community focused on understanding the fundamentals of JavaScript, its origin, evolution, and importance in web development. We learned that JavaScript was created by Brendan Eich in 1995 while working at Netscape, and it was developed in just 10 days. Over the years, JavaScript has gone through multiple versions, and among them, ES6 (ECMAScript 2015)is the most well-known. ES6 introduced modern features such as let, const, arrow functions, template literals, and classes. We also learned how to link JavaScript in an HTML file using the <script> tag — either internally within the document or externally through a .js file. JavaScript is an essential part of web development as it makes web pages dynamic, interactive, and functional, complementing HTML and CSS. It was also discussed that JavaScript is standardized by ECMA International, and the TC39 Committee is responsible for defining and maintaining the ECMAScript standards used across browsers. We explored three important variable declaration keywords — var, let, and const — and understood how they behave in JavaScript: var: Function-scoped, can be redeclared and updated. let: Block-scoped, can be updated but not redeclared within the same scope. const: Block-scoped, cannot be updated or redeclared, used for constants. Lastly, we learned how to use the console for debugging and displaying outputs: console.log() – For general output or messages. console.error() – For displaying errors. console.warn() – For showing warnings.
Learned JavaScript basics with Harsh Vandana Sharma
More Relevant Posts
-
When I first started learning JavaScript, I thought it was just about making buttons clickable. But the deeper you go, the more powerful (and honestly fun) it becomes. Here are some key JavaScript concepts every beginner should understand: Variables (let, const, var) Data types (Strings, Numbers, Booleans, Objects, Arrays) Functions (declaration, expression, arrow functions) DOM Manipulation Events and Event Listeners Loops (for, while, forEach) Conditionals (if, else, switch) Scope and Closures Callbacks, Promises, Async/Await ES6+ Features (destructuring, spread/rest, modules) And the best way to learn these? Build. Here are 7 projects to help you apply core JavaScript concepts: To-Do List App – DOM, events, localStorage Digital Clock – setInterval, Date object Tip Calculator – functions, input handling Quiz App – conditionals, arrays, DOM Weather App – API calls, async/await Image Slider – loops, DOM traversal Notes App – CRUD operations, localStorage Every project teaches something new. And the bonus? You’ll slowly stop Googling “how to use forEach in JavaScript” every time 😅 Keep coding. Keep breaking things. That's how you grow.
To view or add a comment, sign in
-
Excited to announce: I’ve published a new open-source collection “JavaScript Basics for Web Dev” (GitHub: https://lnkd.in/gadEZAZ4) designed for beginners looking to build a strong foundation in web development with JavaScript. 📚 What you’ll find in this repo: 1) A curated set of small, focused examples and exercises covering key concepts: variables, data types, functions, loops, conditionals, arrays, DOM manipulation, events, async/await, error handling, classes and more. 2) A clean folder structure organised by topic (e.g., 1.Js.introduction, 8.Js.DOM, 13.Js.Async-Await-FetchingAPI, etc.). 3) Practical HTML/CSS/JS runnable demos so you can open index.html and experiment in the browser immediately. 4) Guidelines for contributions—if you’d like to add new examples or refine existing ones, everyone is welcome! GitHub 🎯 Who it’s for: 1) Students, self-taught developers, boot-camp attendees, anyone wanting to strengthen their JavaScript fundamentals. 2) Trainers or mentors seeking a ready-to-use demo repository for teaching. 3) Developers preparing to move from “I know a little JavaScript” to “I really understand JavaScript and can apply it confidently”. ✅ Why I built this: 1) I saw that many beginners struggle with bouncing between large tutorials or frameworks before mastering the core language itself. 2)By focusing on foundational concepts in bite-sized, runnable form, I hoped to bridge that gap and make learning JavaScript approachable and concrete. 3)The repository is released with an MIT license — feel free to fork, adapt, teach, and share. 🔁 How you can help: ⭐ Star the repo if you find it useful — it helps visibility. 🧠 Fork + modify examples or add your own topic (e.g., “Web APIs”, “Testing with JS”, etc.). 💬 Drop feedback / suggestions via issues or PRs. 📢 Share with peers, coding groups or during teaching sessions. Thanks for reading — I hope this repository becomes a helpful resource on your JavaScript journey or teaching toolkit. #javascript #webdevelopment #opensource #learntocode #frontend #education
To view or add a comment, sign in
-
🚀 Day 1 : Pathway to Next.js — Understanding JavaScript Behind the Scenes Before diving into Next.js, it’s essential to understand how JavaScript actually runs your code behind the scenes. Every program begins with the Global Execution Context (GEC) — the environment where all variables and functions are stored in memory before any code is executed. JavaScript executes code in two main phases: ✨ Memory Creation Phase — variables are assigned undefined, and functions are stored as complete objects. ⚡ Execution Phase — actual values are assigned, and functions are invoked line by line. When a function is called, JavaScript creates a new Function Execution Context (FEC) exclusively for that function. Each FEC has its own memory space and execution flow. Once the function finishes running, the FEC is destroyed, and control returns to the Global Context. Behind the scenes, everything is managed by the Call Stack, which keeps track of which execution context is currently active: 🧠 The Global Execution Context stays at the bottom. 🧩 Each function call is pushed onto the top of the stack. 🔁 Once the function completes, it’s popped off, and JavaScript continues execution from the previous context. This entire process of creating, pushing, and popping Execution Contexts defines JavaScript’s single-threaded, synchronous nature. 🔥 Key Takeaway: Understanding Execution Contexts and the Call Stack is the foundation for mastering asynchronous programming, closures, promises, and the event loop — the core concepts that power frameworks like Next.js.
To view or add a comment, sign in
-
-
Excited to announce: I’ve published a new open-source collection “JavaScript Basics for Web Dev” (GitHub: https://lnkd.in/gadEZAZ4) is designed for beginners looking to build a strong foundation in web development with JavaScript. 📚 What you’ll find in this repo: 1) A curated set of small, focused examples and exercises covering key concepts: variables, data types, functions, loops, conditionals, arrays, DOM manipulation, events, async/await, error handling, classes and more. 2) A clean folder structure organised by topic (e.g., 1.Js.introduction, 8.Js.DOM, 13.Js.Async-Await-FetchingAPI, etc.). 3)Practical HTML/CSS/JS runnable demos so you can open index.html and experiment in the browser immediately. 4) Guidelines for contributions—if you’d like to add new examples or refine existing ones, everyone is welcome! GitHub 🎯 Who it’s for: 1) Students, self-taught developers, boot-camp attendees, anyone wanting to strengthen their JavaScript fundamentals. 2) Trainers or mentors seeking a ready-to-use demo repository for teaching. 3)Developers preparing to move from “I know a little JavaScript” to “I really understand JavaScript and can apply it confidently”. ✅ Why I built this: 1) I saw that many beginners struggle with bouncing between large tutorials or frameworks before mastering the core language itself. 2) By focusing on foundational concepts in bite-sized, runnable form, I hoped to bridge that gap and make learning JavaScript approachable and concrete. 3) The repository is released with an MIT license — feel free to fork, adapt, teach, and share. 🔁 How you can help: ⭐ Star the repo if you find it useful — it helps visibility. 🧠 Fork + modify examples or add your own topic (e.g., “Web APIs”, “Testing with JS”, etc.). 💬 Drop feedback / suggestions via issues or PRs. 📢 Share with peers, coding groups or during teaching sessions. Thanks for reading — I hope this repository becomes a helpful resource on your JavaScript journey or teaching toolkit. #javascript #webdevelopment #opensource #learntocode #frontend #education
To view or add a comment, sign in
-
💡 Deep Dive into JavaScript Variables and Their Scopes After learning how to include JavaScript in different ways, I’ve moved on to one of the core building blocks of programming — Variables. 🟢 What is a Variable? A variable is a named container used to store data values that can be accessed, modified, or reused throughout a program. In JavaScript, variables help manage dynamic content, user input, and logic flow — making web applications interactive and data-driven. 🔹 Three Ways to Declare Variables in JavaScript Since ES6, JavaScript supports three keywords for declaring variables: 1️⃣ var : Declares a variable function-scoped or globally scoped if outside a function. Can be redeclared and updated. Not recommended for modern code because it can cause unexpected behavior due to hoisting. 2️⃣ let : Introduced in ES6, it is block-scoped — meaning it’s only accessible within the {} block it’s declared in. Can be updated but cannot be redeclared within the same scope. Ideal for variables that may change values. 3️⃣ const Also block-scoped. Used for variables whose values should not be reassigned. Must be initialized during declaration. Ensures immutability for constants like configuration values. 🔹 Summary: var → Function scope let → Block scope const → Block scope 🚀 Best Practice Use const by default for values that won’t change. Use let when reassignment is necessary. Avoid var to prevent scope and hoisting issues. 💡💡 Every small concept adds a new layer of clarity. Understanding how variables and scopes work is key to writing clean, predictable, and efficient JavaScript code. ✨ #JavaScript #WebDevelopment #Frontend #CodingJourney #LearnToCode #Variables #Scopes #Programming
To view or add a comment, sign in
-
-
🔹 Functions in JavaScript — The Building Blocks of Reusable Code A function in JavaScript is a block of code designed to perform a specific task. It helps make your code modular, reusable, and maintainable. 🧩 Definition: A function is a set of statements that performs a particular operation and can be executed whenever it is called. 🔸 Types of Functions 1. Named Function or Function Declaration 2. Anonymous Function or Function Expression 3. Arrow Function 4. IIFE (Immediately Invoked Function Expression) 🔸 Function Parameters and Arguments Parameters: Variables listed in the function definition. Arguments: Values passed to the function when called. 🔸 Scope and Function Behavior Functions have access to: Local Scope: Variables declared inside the function. Global Scope: Variables declared outside the function. Lexical Scope: Inner functions can access variables of their parent function. 🔸 Advantages of Using Functions ✅ Reusability ✅ Modularity ✅ Easy Debugging ✅ Code Organization
To view or add a comment, sign in
-
-
🧠 Complete JavaScript Syllabus (Beginner to Advanced) 🟢 1. Basics of JavaScript Introduction & Setup Variables (var, let, const) Data Types Operators Conditional Statements (if, else, switch) Loops (for, while, do-while) Functions & Parameters Scope & Hoisting 🟡 2. Intermediate Concepts Arrays & Array Methods Strings & String Methods Objects this Keyword Destructuring Spread & Rest Operators Template Literals JSON Date & Math Objects 🟠 3. DOM Manipulation DOM Tree & Nodes Selecting Elements (getElementById, querySelector) Changing Content & Styles Events & Event Listeners Forms & Validations 🔵 4. Advanced JavaScript ES6+ Features Arrow Functions Modules & Imports/Exports Promises Async/Await Fetch API & AJAX Error Handling Closures Callback Functions 🟣 5. Object-Oriented JavaScript Constructor Functions Prototypes & Inheritance Classes & extends super() keyword Encapsulation & Abstraction 🔴 6. JavaScript in Browser LocalStorage, SessionStorage Cookies Event Loop & Call Stack Execution Context Web APIs Debouncing & Throttling ⚫ 7. Modern Tools & Ecosystem NPM (Node Package Manager) Babel & Webpack (Basics) TypeScript (Optional) Testing (Jest, Mocha Basics) 🟤 8. JavaScript Projects To-Do App Calculator Weather App (API based) Quiz App Portfolio Website 📍Learning Roadmap 1️⃣ Learn Basics (Syntax, Variables, Loops) 2️⃣ Practice Array & String Methods 3️⃣ Master DOM & Events 4️⃣ Learn ES6 Features 5️⃣ Understand Asynchronous JS 6️⃣ Build Mini Projects 7️⃣ Move to Frameworks (React, Next.js, Node.js) 🔥 𝐆𝐞𝐭 𝐚𝐥𝐥 𝐭𝐡𝐞 𝐩𝐫𝐨𝐠𝐫𝐚𝐦𝐦𝐢𝐧𝐠 𝐟𝐫𝐞𝐞 𝐧𝐨𝐭𝐞𝐬 𝐡𝐞𝐫𝐞 : https://t.me/ujjwalCoding ➡️ Follow Pushpendra Tripathi for more Valuable Stuff ♻️ Repost to your Job seekers' friends, it is useful for others #JavaScript #JSLearning #WebDevelopment #Frontend #CodingRoadmap #LearnToCode #100DaysOfCode #WebDev #JSDeveloper #CodingJourney #TechCommunity #Programming #CodeWithMe #JSRoadmap
To view or add a comment, sign in
-
-
Weekly Learning Update 🚀 | Advanced JavaScript Hey everyone! This week, I took my JavaScript journey to the next level by diving into Advanced JavaScript concepts. The first chapter I tackled was all about Scope, Execution Context, and Closures—some of the most important (and sometimes tricky!) topics in JS. Here’s what I learned: Variable Scope: Explored the differences between global, block, and functional scope, and how they affect variable accessibility. Execution Context: Understood the two phases—memory creation and execution phase—and how JavaScript manages code behind the scenes. Lexical Scope vs Dynamic Scope: Learned how JavaScript determines variable scope using lexical (static) scoping, and how it’s different from dynamic scope. Closures: Finally got a clear definition of closures and saw how variables are preserved even after a function has finished executing. To put these concepts into practice, I also created some small projects based on everything I’ve learned so far. I’ll be sharing more about these projects soon—stay tuned! If you have any tips, resources, or interesting use-cases for closures and execution context, I’d love to hear from you! #LearningJourney #JavaScript #WeeklyUpdate #ContinuousLearning #AdvancedJavaScript
To view or add a comment, sign in
-
💡Amazing JavaScript Facts Every Learner Should Know! When I started learning JavaScript, I used loops, functions, and arrays almost every day — but later I realized there are some shocking little facts hidden inside them 👀👇 1️⃣ Functions are also objects! You can assign them to variables, pass them as arguments, or even return them from another function. 👉 Example: function greet() { return "Hello"; } greet.message = "Hi from function!"; console.log(greet.message); // Hi from function! 2️⃣ You can loop through arrays in different ways — and they behave differently! 👉 for...of gives values, but for...in gives indexes! const arr = ['a', 'b', 'c']; for (let i in arr) console.log(i); // 0,1,2 for (let val of arr) console.log(val); // a,b,c 3️⃣ Arrays are special objects in disguise! That’s why typeof [] returns "object" 😄 console.log(typeof []); // "object" 4️⃣ Functions inside loops can surprise you! If you use var, all functions share the same variable; but let creates a new one each time. 👉 Small change, big difference! 5️⃣Arrays don’t always behave like “normal arrays”! const arr = [1, 2, 3]; arr[10] = 99; console.log(arr.length); // 11 😳 Yes — JavaScript fills the gap with empty slots, not undefined! 💬 Which one did you already know — and which surprised you the most? Let’s see how many JS lovers spot all 😎 #JavaScript #CodingJourney #FrontendDevelopment #DeveloperTips #LearnByDoing
To view or add a comment, sign in
Explore content categories
- Career
- Productivity
- Finance
- Soft Skills & Emotional Intelligence
- Project Management
- Education
- Technology
- Leadership
- Ecommerce
- User Experience
- Recruitment & HR
- Customer Experience
- Real Estate
- Marketing
- Sales
- Retail & Merchandising
- Science
- Supply Chain Management
- Future Of Work
- Consulting
- Writing
- Economics
- Artificial Intelligence
- Employee Experience
- Workplace Trends
- Fundraising
- Networking
- Corporate Social Responsibility
- Negotiation
- Communication
- Engineering
- Hospitality & Tourism
- Business Strategy
- Change Management
- Organizational Culture
- Design
- Innovation
- Event Planning
- Training & Development