Created
December 25, 2018 01:59
-
-
Save segdeha/a63b7c72976cd2d82cee88c579e8a6e9 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
let name = 'diane'; | |
let name_capitalised = name.slice(0, 1).toUpperCase() + | |
name.slice(1, name.length).toLowerCase(); | |
alert(`Hi ${name_capitalised}. You are pretty cool!`); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment