Skip to content

Instantly share code, notes, and snippets.

@jesterpm
jesterpm / gist:2720304
Created May 17, 2012 17:18 — forked from tuschhcm/gist:2720276
dealing with function
var fullName = "";
var name;
var firstLetter;
var fixName = function(){
firstLetter = name.substring(0, 1);
name = firstLetter.toUpperCase() + name.substring(1);
fullName = fullName + " " + name;
}
{name = prompt("Enter your first name (all in lower case):");