Basically i have literally just started learning Java Script and i was seeking some help as to how i could repeatedly display the character "X" any given number of times using a function.
Here is what i have so far:
function makex(8)
{
var resultStr = "";
for (var xcount = 0; xcount < makex(8); xcount++)
{
resultStr = resultStr + 1; // this line was an experiment so could be completely wrong?
}
return resultStr;
}
// this is just so when you press run
// i get some output
console.log(makex(7));
Would really appreciate anyone that could help me. I am virtually clueless to this as it is a new topic, so it may seem very easy to some others. Thanks