Skip to content

In this repository, listed Javascript practices from Udacity- Intro to Javascript ud803

Notifications You must be signed in to change notification settings

AilaLu/Javascript-practice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

/*

  • Programming Quiz: Murder Mystery (3-4) */

var room = "gallery"; var suspect = "Ms. Van Cleve";

var weapon; if ( room === "dining room") { weapon = "knife";} else if (room === "ballroom" ) {weapon = "poison";} else if (room === "billiards room") {weapon = "pool stick";} else {weapon = "trophy";}

var solved;

if ( room === "dining room" && suspect === "Mr. Parkes") { solved = true; } else if (room === "ballroom" && suspect === "Mr. Kalehoff") { solved = true; } else if (room === "billiards room" && suspect === "Ms. Sparr") { solved = true; }else { solved = true;

}

if (solved === true) { console.log(suspect+" did it in the "+room+" with the "+ weapon+"!"); }

About

In this repository, listed Javascript practices from Udacity- Intro to Javascript ud803

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published