Codstak
    • Home
    • DSA
    • JavaScript
    • TypeScript
    • Node.js
    • React
    • More↓
      Blog14-Day PrepPricingDiscordNewsletterLeaderboard

    © 2026 Codstak

    PrivacyTerms

    Practice real coding.
    Get feedback. Improve.

    Real-world JavaScript, TypeScript, React, Node.js, and DSA challenges with verified tests and contextual AI feedback.

    Start a challenge Browse challenges

    Try the challenge preview

    codstak / double-array-valuesJavaScript challenge
    JavaScript10–15 min

    Transform array values

    Double every value without changing the original array.

    solution.jstests

    function doubleValues(values) {

    return values.map((value) => value * 2);

    }

    console.log(

    doubleValues([2, 4, 6])

    );

    Console output

    Ready to run solution.js

    AI coach
    Run the code to inspect its output and receive focused feedback.

    Interactive preview · Example code and feedback

    Choose what to practice

    JavaScriptTypeScriptReactNode.jsDSA

    How practice works

    1. Challenge
    2. Run
    3. Get feedback
    4. Retry
    5. Improve

    Start free.

    Upgrade when you want deeper AI guidance.

    Free $0

    • Core practice
    • Verified challenges
    • Limited AI help

    Pro $15 / month

    • More AI hints
    • Deeper code reviews
    • Debugging help
    • Higher AI usage limits
    View Pro details
    Start practicing