Created
May 18, 2017 11:24
-
-
Save aceqbaceq/9ab44d16fa594f2ab74cf5264d9af6c9 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
function asdf(a,b) { | |
for (var i=0; i < a.length; i++) { | |
if ( a[i] === b ) { | |
return i; | |
}; | |
}; | |
return -1; | |
}; | |
var ar; | |
ar=[]; | |
ar= ["test", 12, 12, 1.5, 17]; | |
result = asdf (ar,100); | |
alert (result); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment