Question: / / Written by Kent, Clark var Enemies = [ Lex , Batman,Darkseid,Brainiac,General Zod,Doomsday ] ; funtion Who _ Wins ( is -
Written by Kent, Clark
var EnemiesLex"Batman","Darkseid","Brainiac","General Zod","Doomsday";
funtion WhoWinsistherekryptonite,enemyname
if istherekryptonite
return "Superman beats enemyName of course";
else
return "Depends on how quick Superman can get rid of the Kryptonite. enemyname could possibly win this one.";
for var i;i
clarkKentfalse;
supermantrue;
console.logNow Im Superman!";
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
