AI LabExerciseFlashcardChallenge
⚡JavaScript ट्यूटोरियल
Activities
ExerciseCode EditorReferenceSnippetsCheatsheetsCommunityFlashcardBlogCode ChallengeAI LabsCertificate
Lessons
JavaScript Home
01जावास्क्रिप्ट परिचय
02let और const
03जावास्क्रिप्ट फ़ंक्शन
04जावास्क्रिप्ट ऐरे
05Objects

Code Challenges

Code challenges for JavaScript. Each challenge links to its lesson page where you can solve it with live code execution.

3 challenges · 2 lessons
02let और const
1 challenges
# अभिवादन फ़ंक्शन एक फ़ंक्शन `greet(name)` बनाएं जो `"Hello, <name>!"` लौटाता है। फिर `console.log(greet("Aarav"))` करें। ## अपेक्षित आउटपुट ``` Hello, Aarav! ```easy
03जावास्क्रिप्ट फ़ंक्शन
2 challenges
# ऐरे का योग `const nums = [1, 2, 3, 4, 5]` दिया गया है, `.reduce()` का उपयोग करके सभी संख्याओं का योग प्रिंट करें। ## अपेक्षित आउटपुट ``` 15 ```medium# सम संख्याएँ फ़िल्टर करें `const nums = [1, 2, 3, 4, 5, 6, 7, 8]` दिया गया है, `.filter()` का उपयोग करके केवल सम संख्याओं को ऐरे के रूप में प्रिंट करें। ## अपेक्षित आउटपुट ``` [2,4,6,8] ```medium

w3primecode is a free multilingual platform to learn programming — tutorials, runnable code, AI tutor, spaced-repetition flashcards, and verifiable certificates, all in 14 languages.

Product

Company

For Agencies

Newsletter

Weekly coding tips in your language

Available Languages

Englishहिन्दीবাংলাमराठीతెలుగుதமிழ்ગુજરાતીಕನ್ನಡമലയാളംଓଡ଼ିଆਪੰਜਾਬੀनेपालीརྫོང་ཁසිංහල

© 2026 w3primecode. All rights reserved.