Skip to content

Instantly share code, notes, and snippets.

View Elli-P's full-sized avatar

Elli Elli-P

  • St. Petersburg, Russia
View GitHub Profile
var lines;
var length = tiers;
function buildTriangle(tiers){
var triangle = "";
for (var h = 1; h <= tiers; h++) {
lines = function makeLine(length) {
var line = "";
for (var j = 1; j <= length; j++) {
var lines;
function buildTriangle(height){
var triangle = "";
var length = height;
for (var h = 1; h <= height; h++) {
lines = function makeLine(length) {
var line = "";
for (var j = 1; j <= length; j++) {
function laugh(num){
var repeatedString = "";
var string = "ha";
while (num > 0){
repeatedString += string;
num--;
}
return repeatedString;
/*
* Programming Quiz: Back to School (3-9)
*/
// change the value of `education` to test your code
var education = "an Associate's degree";
// set the value of this based on a person's education
var salary = "";