Assignments JS.Conds

Handing In Assignments

You must hand in by using git

Hand In by git

  • Create an empty repo on bitbucket.org, gitlab.com, or github.com,
  • git push your local repo to the above remote repo.
  • For node assignments please put the line(s)

    node_modules/

    into your .gitignore file.

Send a mail to with:

  • The word 'handin <subjectname>' in the subject line of your mail
  • The url of your repo(s).

Assignment JS.Conds.0

I gave you a naive model solution to the coin flipping problem. It still resides at the repo:

git clone https://phidip@bitbucket.org/phidip/coinflipping.git

After cloning it, copy it into a file jsConds0.js, then change it into rolling a die 10 times. Let it tally the outcomes, and print the number of ones, twos, ..., sixes when it is done.

Hint: You need more counter variables, as a die has 6 sides. Consequently you also need more conditionals.

Place the code in jsConds0.js