Created
October 19, 2015 06:11
-
-
Save edinsoncs/13ffe1afa13711df5259 to your computer and use it in GitHub Desktop.
Length
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
/*Length*/ | |
function length(param1, param2) { | |
var param1 = param1.length; | |
var param2 = param2.length; | |
if(param1 === 7 || param2 === 10) { | |
var r = "Name: " + param1 + " - " + "Surname: "+param2; | |
} | |
else { | |
var r = "Insert other name/surname"; | |
} | |
return r; | |
}; | |
length("edinson", "carranza"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment