Month: March 2023

How to make Chessboard using Javascript?

Problem: Write a program that creates a string that represents an 8×8 grid, using newline characters to separate lines. At each position of the grid there is either a space or a “#” character. The characters should form a chessboard….

How to make a triangle using a loop in Javascript?

Problem comes from https://eloquentjavascript.net/02_program_structure.html: Looping a triangle Write a loop that makes seven calls to console.log to output the following triangle: # ## ### #### ##### ###### ####### It may be useful to know that you can find the length of a…