Skip to content

Instantly share code, notes, and snippets.

@vlad-terin
Last active May 7, 2018 16:51
Show Gist options
  • Save vlad-terin/69b805ebcbaf4d85a1ed63a108b2e125 to your computer and use it in GitHub Desktop.
Save vlad-terin/69b805ebcbaf4d85a1ed63a108b2e125 to your computer and use it in GitHub Desktop.

Revisions

  1. vlad-terin revised this gist May 7, 2018. 2 changed files with 0 additions and 0 deletions.
    File renamed without changes.
    File renamed without changes.
  2. vlad-terin revised this gist May 7, 2018. 1 changed file with 12 additions and 0 deletions.
    12 changes: 12 additions & 0 deletions FizzBuzzEJS.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,12 @@
    for (let i = 1; i <= 100; i++) {

    if (i % 3 === 0 && i % 5 === 0) {
    console.log('FizzBuzz');
    } else if (i % 5 === 0) {
    console.log('Buzz');
    } else if (i % 3 === 0) {
    console.log('Fizz');
    } else {
    console.log (i);
    }
    }
  3. vlad-terin renamed this gist May 7, 2018. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  4. vlad-terin created this gist May 7, 2018.
    11 changes: 11 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    /*
    Looping a Triangle
    Eloquest Javascript answer
    */

    let hash = '';

    for (let i = 0; i < 7; i++) {
    console.log (hash += '#')

    }