Skip to content

GoogleScholarship/JavaScript_with_If_else_and_buildin_methods

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

GoogleScholarship-JavaScript1

Murder Mystery Quiz (3-4)

code I modified:

var room; // code was: var room = "ballroom"; var suspect; //code was:var suspect = "Mr. Kalehoff";

code that I added to make the game more real:

if (random >= 7.5){ room = "ballroom"; suspect = "Mr. Kalehoff"; } else if(random >= 5 && random <= 7.49 ){ room = "billiards room"; suspect = "Mrs. Sparr"; } else if(random >= 2.5 && random <= 4.99){ room = "gallery"; suspect = "Ms. Van Cleve"; } else{ room = "dining room"; suspect = "Mr. Parkes"; }

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published