function howManyTimes(num, str) {
  if (!str) str = '';
  
  if (num > 0) {
    return howManyTimes(num - 1, str + 'a');
  } else {
    return `Ed${str}bit`;
  }
}

console.log(howManyTimes(8));

One issue is that your recursion is always appending the result of the method to an a. Rather than doing that, pass along the aggregated string to then be used once you reach the end.

Answer from Taplar on Stack Overflow
🌐
Edabit
edabit.com
Edabit
We cannot provide a description for this page right now
🌐
Reddit
reddit.com › r/learnjavascript › edabit.com is the best resource for people who know more than the basics, but are struggling to take next steps!
r/learnjavascript on Reddit: edabit.com Is the best resource for people who know more than the basics, but are struggling to take next steps!
May 29, 2019 -

I'm someone who's been through a handful of basic tutorials. I know what can be done, but every single time I try to actually code my own stuff, I end up Googling basic things.

I tried to follow along with big projects, but so much started to go over my head. I knew I needed a simpler way to learn if I wanted to make more progress.

Edabit is a Godsend for people in my position because it allows me to practice a lot of different types of problems with a high frequency. If you're struggling to go from "super beginner" to "beginner" I highly recommend it!

Link for those interested.

PS. I'm no way affiliated with them

Discussions

javascript - Recursion challenge - Edabit - Stack Overflow
The problem wants me to output the string "Edabit" with the number of "a" characters equaling the initial number passed through the function. I have tried different methods of More on stackoverflow.com
🌐 stackoverflow.com
Coding problem solution not working
Know Your Neighbor // Edabit :backhand_index_pointing_up: I’m trying to solve this coding problem (:backhand_index_pointing_up:). But I’m not able to. Is this a hard problem? Or am I just too bad? Pls, be honest. I ha… More on forum.freecodecamp.org
🌐 forum.freecodecamp.org
19
0
September 14, 2021
Where to get good practice for javascript like edabit.com?

On July 1st, a change to Reddit's API pricing will come into effect. Several developers of commercial third-party apps have announced that this change will compel them to shut down their apps. At least one accessibility-focused non-commercial third party app will continue to be available free of charge.

If you want to express your strong disagreement with the API pricing change or with Reddit's response to the backlash, you may want to consider the following options:

  1. Limiting your involvement with Reddit, or

  2. Temporarily refraining from using Reddit

  3. Cancelling your subscription of Reddit Premium

as a way to voice your protest.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

More on reddit.com
🌐 r/learnprogramming
3
1
July 19, 2023
javascript - My code passes all my tests but some how edabit is not approving it - Stack Overflow
Communities for your favorite technologies. Explore all Collectives · Stack Overflow for Teams is now called Stack Internal. Bring the best of human thought and AI automation together at your work More on stackoverflow.com
🌐 stackoverflow.com
🌐
DEV Community
dev.to › toddster79 › edabit-com-my-favorite-resource-for-javascript-practice-problems-443g
Edabit.com My Favorite Resource for JavaScript Practice Problems - DEV Community
August 16, 2020 - The no-nonsense interface does a great job of staying out of your way, and allowing you to focus solely on the problems. There is a calendar that tracks how many days in row that you've been coding, and you can level up based on the number of points that you earn. I personally use edabit.com for JavaScript, but there are several other languages to choose from.
🌐
GitHub
github.com › nikclayton › edabit-javascript-challenges
GitHub - nikclayton/edabit-javascript-challenges: Javascript challenges forked from Edabit · GitHub
Javascript challenges forked from Edabit. Contribute to nikclayton/edabit-javascript-challenges development by creating an account on GitHub.
Starred by 28 users
Forked by 23 users
Languages   JavaScript
🌐
X
x.com › @edabit
edabit.com (@edabit) on X
October 2, 2011 - Learn to code with 10,000+ interactive challenges. Gain XP, unlock achievements and level up. Edabit is like Duolingo for learning to code.
Find elsewhere
🌐
YouTube
youtube.com › playlist
Coding Challenges - Codewars, Leetcode and Edabit
AboutPressCopyrightContact usCreatorsAdvertiseDevelopersTermsPrivacyPolicy & SafetyHow YouTube worksTest new features · © 2026 Google LLC · Coding Challenges - Codewars, Leetcode and Edabit - YouTube
🌐
freeCodeCamp
forum.freecodecamp.org › programming
Coding problem solution not working - JavaScript
September 14, 2021 - Know Your Neighbor // Edabit :backhand_index_pointing_up: I’m trying to solve this coding problem (:backhand_index_pointing_up:). But I’m not able to. Is this a hard problem? Or am I just too bad? Pls, be honest. I ha…
🌐
freeCodeCamp
freecodecamp.org › news › the-8-most-popular-coding-challenge-websites-of-2020
The 8 Best Coding Challenge Websites to Help You Level Up Your Skills in 2020
May 20, 2020 - Edabit is great for beginners looking to practice their coding skills daily by solving bite-sized challenges.
🌐
Simple Programmer
simpleprogrammer.com › home › blog › edabit review (2023)
Edabit Review (2023) - Simple Programmer
April 19, 2023 - You can use the site to do basic Python and JavaScript tutorials, as well as up to 15 code challenges, without having to pay. If you want to access their whole catalog of 10,000+ coding problems, though, you’ll have to buy a membership with Edabit.
🌐
OneCompiler
onecompiler.com › javascript › 3xbcjczgc
Edabit string - JavaScript
The editor shows sample boilerplate code when you choose language as Javascript and start coding.
🌐
GitHub
github.com › karabayse › edabit
GitHub - karabayse/edabit: Daily JavaScript practice · GitHub
Daily JavaScript practice. Contribute to karabayse/edabit development by creating an account on GitHub.
Author   karabayse
🌐
Austin Kladke
austinkladke.wordpress.com › 2019 › 09 › 25 › edabit-com-save-yourself-a-lot-of-hassle-as-a-coding-beginner-and-learn-how-to-program-using-this-website
Edabit.com: Save yourself a lot of hassle as a coding beginner and learn how to program using this website | Austin Kladke
May 7, 2021 - What is it? In a nutshell, Edabit is a website that assists in teaching yourself how to learn to program in a multitude of different languages (examples include Python, Java, Javascript, and Ruby) and is similar to something like Codecademy.
🌐
Netlify
edabit.netlify.app
edabit
You need to enable JavaScript to run this app
🌐
Scribd
scribd.com › document › 849071841 › Edabit-JavaScript-Problems-Links
Edabit JavaScript Challenges | PDF
Edabit JavaScript Problems Links - Free download as Excel Spreadsheet (.xls / .xlsx), PDF File (.pdf), Text File (.txt) or read online for free. The document contains a list of links to various coding challenges on Edabit. Each link leads to a different challenge that users can attempt to improve ...
🌐
Roadmap
roadmap.sh › datastructures-and-algorithms
Data Structures and Algorithms Roadmap
February 26, 2026 - Step by step guide to learn Data Structures and Algorithms in 2026
🌐
YouTube
youtube.com › watch
Easy JavaScript Exercises with Edabit - YouTube
In this JavaScript tutorial I’ll introduce you to the Edabit coding platform and we’ll complete some east Edabit JavaScript exercises.Get started with Edabit...
Published   January 12, 2021