Created
August 28, 2017 22:38
-
-
Save claudiainbytes/2152494bd7a70fe1c93c6a85bfb68e03 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
var s = "audacity"; | |
var udacityizer = function(s) { | |
// Right now, the variable s === "audacity" | |
// Manipulate s to make it equal to "Udacity" | |
// Your code goes here! | |
s = s.charAt(1).toUpperCase() + s.slice(2); | |
return s; | |
}; | |
// Did your code work? The line below will tell you! | |
console.log(udacityizer(s)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment