Skip to content

Instantly share code, notes, and snippets.

@sivaprabug
Created January 5, 2020 11:33
Show Gist options
  • Save sivaprabug/8547f5232cc2fe4410fd036b26f19c9c to your computer and use it in GitHub Desktop.
Save sivaprabug/8547f5232cc2fe4410fd036b26f19c9c to your computer and use it in GitHub Desktop.
function siva(value){
if(!value) return '';
value = value.toString();
var a = value.charAt(0).toUpperCase()+value.slice(1)+'<br>';
document.write(a);
}
siva('Sivaprabu Ganesan');
siva('<br>');
siva('@$@$@$');
siva('a$lert');
siva('Sivaprabu Ganesan');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment