Skip to content

Instantly share code, notes, and snippets.

View NormanBenbrahim's full-sized avatar
🦍

Norman Benbrahim NormanBenbrahim

🦍
View GitHub Profile
var Person = function(firstAndLast) {
var full_arr = firstAndLast.split(' ');
var firstName = full_arr[0];
var lastName = full_arr[0];
var fullName = firstName + ' ' + lastName;
// now build the methods
function getFirstName() {
return firstName;
}