Skip to content
This repository was archived by the owner on Oct 26, 2020. It is now read-only.

Js/ week2/ali haider #77

Open
wants to merge 13 commits into
base: master
Choose a base branch
from
Open
Prev Previous commit
Next Next commit
E-conditionals exercise completed.
  • Loading branch information
AliHaider-1 committed Jul 5, 2020
commit 1c87d03d75beb83bc91ec03e898f51c09615f490
7 changes: 7 additions & 0 deletions week-2/1-exercises/E-conditionals/exercise.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,13 @@
var name = "Daniel";
var danielsRole = "mentor";

if (danielsRole === "mentor"){
console.log("Hi, I'm "+name+", I'm a mentor.");
}
else if (danielsRole === "student"){
console.log("Hi, I'm " + name + ", I'm a student.");
}

/*
EXPECTED RESULT
---------------
Expand Down