💡 JavaScript Tip of the Day What will be the output? console.log([] + []); 👉 Answer: "" (empty string) JavaScript converts arrays to strings before concatenation 😄 #JavaScript #DeveloperLife #FrontendDeveloper #CodingTips #LearningJS
JavaScript Array Concatenation
More Relevant Posts
-
Part 2 of using reduce() method in JavaScript. Let’s talk about getting the product of numbers in JavaScript Arrays. #JavaScript #WebDevelopment #CodingTips #LearnToCode #softwaredeveloper
To view or add a comment, sign in
-
Javascript Scopes in 30 seconds. Many bugs in JavaScript come from misunderstanding scope. Scope decides where variables live and who can access them. var → function scoped let / const → block scoped #JavaScript #CodingJourney
To view or add a comment, sign in
-
-
Exploring the power of Functions in JavaScript 💻 Functions allow developers to break large programs into smaller reusable blocks, making code cleaner and easier to manage. From function declarations to arrow functions, mastering them is key to writing efficient JavaScript code. #JavaScript #CodingJourney #WebDevelopment #LearnToCode #Pyspiders
To view or add a comment, sign in
-
-
Got a minute for some JavaScript? 😚 What does this code output? Answer 🔍 >>> undefined I don’t really like questions where you just have to be attentive, but I think this is something worth paying attention to. To get the number of entries in a *Map*, you use the *.size* property, not *.length* like in arrays. In short: .length --> Arrays, Strings, function parameters .size --> Map, Set #javascript #webdevelopment
To view or add a comment, sign in
-
-
📘 JavaScript Event Loop – Simple Explanation First, JavaScript runs synchronous code (Call Stack). Then it executes Microtasks (like Promises). After that, Macrotasks (like setTimeout) are executed. 👉 That’s why the output is: 1 → 4 → 3 → 2 Today I understood the Event Loop concept clearly 💡 #JavaScript #WebDevelopment #Learning #CodingJourney
To view or add a comment, sign in
-
-
I focused on understanding null and undefined in JavaScript. null usually means a value is intentionally set to “no value.” undefined means a value is not assigned or not available for some reason. This small difference is very important when writing clean and bug-free code. Improving my understanding of JavaScript fundamentals step by step. #JavaScript #ProgrammingBasics #WebDevelopment #LearningJourney
To view or add a comment, sign in
-
Today’s JavaScript session was very insightful. I learned about the this keyword in depth and explored important concepts like call(), bind(), apply(), and factory functions. Understanding how this works in different contexts has given me much more clarity and confidence in writing better JavaScript code. Learning step by step and strengthening my fundamentals every day 🚀 #JavaScript #WebDevelopment #LearningJourney #FrontendDevelopment
To view or add a comment, sign in
-
Day 38/100 🚀 Still on JavaScript objects — practicing creating objects, accessing properties, and understanding how objects behave differently from primitive data types. #100DaysOfCode #JavaScript #WebDev
To view or add a comment, sign in
-
If you think reduce() is only for summing numbers… you’re limiting yourself. Here’s what you don’t know about the JavaScript reduce method (Part 1). 👇 Have you ever used reduce in a real project? #JavaScript #WebDevelopment #CodingTips #LearnToCode #SoftwareDeveloper
To view or add a comment, sign in
-
Day 32 of #100DaysOfCode Today I learned one of the most important JavaScript topics for full-stack development: Functions. Covered: • Function declaration & expression • Parameters vs arguments • Return statement • Arrow functions • Basic callback functions Functions are everywhere — from frontend logic to backend APIs. #FullStackDevelopment #JavaScript #LearningInPublic #WebDevelopment
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
It's true, But only with + operator. console.log([] - []); // 0