Mini JavaScript Challenge #2 Can you guess the output? 👇 console.log("5" - 2) Options A) 3 B) 52 C) NaN D)Error Comment your answer below. #javascript #codingchallenge #programming #webdevelopment #developer
JavaScript Challenge: Guess the Output
More Relevant Posts
-
TypeScript vs JavaScript in 2026. Learn the real differences with side-by-side code examples, performance facts, and a clear guide on which language to choose for your next project. https://lnkd.in/gTCf2hRj #programming #languages #typescript #javascript #vs #difference #project
To view or add a comment, sign in
-
-
Stop installing what you only need once! ⚡ The difference between npm and npx in 3 bullet points: 📦 npm: Download & Keep. Best for dependencies your project needs to run every day. It lives in your node_modules. 🚀 npx: Use & Discard. Best for one-off commands (like create-react-app). It runs the latest version without cluttering your disk. The Rule of Thumb: If you need to import it, use npm. If you just need to run it, use npx. #WebDev #JavaScript #MERN #NodeJS #Programming #CodingTips #FullStack #SoftwareDevelopment #CleanCode
To view or add a comment, sign in
-
-
💡 JavaScript Trick: Move all zeros to the end of an array const arr = [0, 0, 0, 1, 2, 3, 4]; const result = [ ...arr.filter(item => item !== 0), ...arr.filter(item => item === 0) ]; console.log(result); ✅ Output: [1, 2, 3, 4, 0, 0, 0] #javascript #coding #webdevelopment #programming #frontenddeveloper #react
To view or add a comment, sign in
-
Here is the final part of our weekly series on object Destructuring. Functions, Rest and Pro Patterns. If our content has been of great help to you. Drop a comment or a suggestion on how we can do better. #programming #javascript
To view or add a comment, sign in
-
3 VS Code extensions that every developer should have installed right now. 🔹 Prettier, Auto-formats your code on save 🔹 ES7 React/Redux Snippets, Generate components in seconds 🔹 Error Lens, See errors inline, not in the terminal #VSCode #WebDevelopment #CodingTips #Developer #Prettier #ReactJS #Programming #CodeQuality
To view or add a comment, sign in
-
𝐈𝐧 𝐉𝐚𝐯𝐚𝐒𝐜𝐫𝐢𝐩𝐭, 𝐟𝐮𝐧𝐜𝐭𝐢𝐨𝐧𝐬 𝐚𝐫𝐞 𝐧𝐨𝐭 𝐣𝐮𝐬𝐭 𝐟𝐮𝐧𝐜𝐭𝐢𝐨𝐧𝐬… They’re values. You can: • Pass them as arguments • Return them from other functions • Assign them to variables This is what makes patterns like callbacks, closures, and higher-order functions possible. But many developers use these without fully understanding them. We’ve broken it down with simple examples in our latest blog. Read here: https://lnkd.in/gEWNYg_p #JavaScript #Programming #WebDevelopment
To view or add a comment, sign in
-
Revisiting a simple but powerful JavaScript concept today: map() map() allows us to transform each element of an array and return a new array. Example: doubling numbers in an array. Small concepts like these form the foundation of writing cleaner and more functional JavaScript code. #JavaScript #WebDevelopment #FrontendDevelopment #Programming #CodingJourney #LearningInPublic
To view or add a comment, sign in
-
-
npm vs npx — One small difference that can level up your dev workflow ⚡ If you're working with Node.js, you’ve probably used both npm and npx… but do you really know when to use each? 🔧 npm helps you install and manage dependencies ⚡ npx lets you run packages instantly without installing 👉 The real power? Knowing when to use what 💡 Quick takeaway: Use npm for long-term dependencies Use npx for quick, one-time execution This simple distinction can save time, reduce clutter, and improve your development workflow 🚀 👉 Pro tip: Using npx avoids version conflicts when working across multiple projects. #WebDevelopment #NodeJS #JavaScript #FrontendDevelopment #BackendDevelopment #CodingTips #Developers #TechLearning #Programming #SoftwareDevelopment #100DaysOfCode #DevCommunity
To view or add a comment, sign in
-
-
fr that's how it is especially when that variable is missing on ur assembly code base or u need a piece of code you wrote months ago and u want to go back to take a selection to add to ur new one
When a developer goes to bed with unsolved bugs 😆😁. #softwaredevelopment #webdevelopment #programming #javascript #bugs Jantech Solutions w3schools.com JavaScript Developer JavaScript Mastery JavaScript Notes GeeksforGeeks
To view or add a comment, sign in
-
-
Most developers get this WRONG 😅 What will be the output? console.log(1); setTimeout(() => console.log(2), 0); Promise.resolve().then(() => console.log(3)); console.log(4); 👇 Drop your answer before checking Understanding Event Loop = Next Level JavaScript 🚀 #JavaScript #CodingChallenge #FrontendDeveloper #TechCommunity #Programming #DevelopersIndia #LearnJS
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