Skip to content
Advertisement

Making an ASCII rhombus with loops

I got a problem to create a rhombus, my code here:

JavaScript

However, the output is:

JavaScript

I think the problem is in the code which I highlighted.

Advertisement

Answer

You are right in indicating the possible problematic line. Surprised that you did it right in first half:

JavaScript
Advertisement