Last active
December 22, 2015 18:19
-
-
Save kulte/6511935 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var powerRankings = [ | |
"49ers", | |
"Seahawks", | |
"Broncos" | |
]; | |
var index = powerRankings.indexOf("Seahawks", 1); | |
var rank = index + 1; | |
// Outputs: "Seahawks power ranking is 2" | |
console.log("Seahawks power ranking is " + rank); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment