Got a minute for some JavaScript? 📏 What do you know about the length property of functions? Answers 🔍 >>> 3 1 1 You can remember it this way: The length property of a function equals the number of parameters before the first parameter with a default value. #javascript #webdevelopment
Liliia Dokuchaeva’s Post
More Relevant Posts
-
Understanding async is a turning point in JavaScript. Just published a beginner-friendly blog on Synchronous vs Asynchronous JS ✨ 👉 https://lnkd.in/g-RB5ZU2 Chai Aur Code Hitesh Choudhary Piyush Garg Akash Kadlag Anirudh Jwala #chaicode #javascript
To view or add a comment, sign in
-
-
Got a minute for some JavaScript? 🍵 What does this code output? Answers 🔍 >>> - ReferenceError: message is not defined Why? Because let lives only inside the block where it’s created. In this code, message is created inside the *if {}* and *else {}* blocks. When JavaScript reaches *console.log(message)*, it is already outside those blocks, so the variable no longer exists. #javascript #webdevelopment
To view or add a comment, sign in
-
-
Got a minute for some JavaScript? 🍒 What does this code output? Answers 🔍 >>> - "Tom says meow" - TypeError: c.createKitten is not a function - "Kitty says meow" Why the TypeError? *createKitten* is a static method - it lives on the *Cat* constructor, not on instances. *c* is an instance, so it cannot access static methods. Only *Cat.createKitten()* works. #javascript #webdevelopment
To view or add a comment, sign in
-
-
Tip Calculator The game is simple to fetch the data from the HTML, make calculations and then update it via Javascript. The question is how, let's see more in the video. #learninginpublic #JavaScript #Codinglife #learningvideoediting
To view or add a comment, sign in
-
Today I practiced the difference between map(), filter(), and forEach() in JavaScript. map() creates a new array by transforming each element of the original array. filter() creates a new array with elements that satisfy a specific condition. forEach() simply runs a function for each element and does not return a new array. Understanding these methods makes working with arrays much easier and cleaner. #JavaScript #WebDevelopment #ArrayMethods #LearningJourney
To view or add a comment, sign in
-
💡 JavaScript Trick Question: 3 + 2 + "7" In JavaScript, the answer is: 👉 "57" 🔍 Why? 🔹 JavaScript follows left-to-right evaluation and uses type coercion. ⚡ Key Insight : 🔹Once a string enters the expression, everything after that becomes a string operation. "In JavaScript, the moment a string joins the party, numbers stop adding and start concatenating." #JavaScript #WebDevelopment #CodingInterview #Frontend #JSConcepts
To view or add a comment, sign in
-
-
🚀 JavaScript Fundamentals Series — Part 7 Most developers use arrays every day… But many don't fully understand array methods. This guide explains the most important ones: • map() • filter() • reduce() These methods help you write cleaner and more functional JavaScript. Once you master them, your code becomes much more expressive. Full guide 👇 https://lnkd.in/dZTRRCUx #javascript #webdevelopment #functionalprogramming
To view or add a comment, sign in
-
Don’t learn randomly ❌ Follow a roadmap 💻 HTML & CSS → CodeWithHarry JavaScript → Chai aur Code Start today, stay consistent, and become a developer 🚀🔥 Save this for later!” #webdevelopment #codingjourney #learncoding #htmlcss #javascript
To view or add a comment, sign in
-
⚡ JavaScript Performance Tip: Debounce vs Throttle Debounce → Runs after the delay Throttle → Runs every fixed interval #javascript #frontenddevelopment #reactjs #webperformance #webdevelopment
To view or add a comment, sign in
-
-
🚀 JavaScript Fundamentals Series — Part 5 JavaScript introduced arrow functions to make functions cleaner and shorter. But they also behave differently from normal functions. In this guide I explain: • Arrow function syntax • Implicit return • Why arrow functions don't have their own this • When to use them (and when NOT to) Once you understand this, modern JavaScript becomes much easier to read. Full guide 👇 https://lnkd.in/d8sR5Hc5 #javascript #frontend #webdev
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
3 1 1