shaw0106 / letter-looper-triangle

Make a small Javascript program that accepts a letter and spits it out a triangle of the letter.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Letter looper triangle

  • Approx. completion time: 1 hour
  • Deliverables: 1 HTML file, 1 JS file

Make a small Javascript program that accepts a letter and spits it out a triangle of the letter.

  • Fork this repository.
  • Write the Javascript program using variables, prompt and loops.
  • Run it through Markbot and make sure it passes all the checks.

Goal

The output in the browser should look like this:

b
bb
bbb
bbbb
bbbbb
bbbbbb
bbbbbbb
bbbbbbbb
bbbbbbbbb
bbbbbbbbbb

Create the interaction shown in the linked video.


Hand in

Drop this folder into your Markbot application. Make sure to fix all the errors. And submit to Canvas using Markbot.

About

Make a small Javascript program that accepts a letter and spits it out a triangle of the letter.


Languages

Language:HTML 100.0%