scrimba
Clean Code
Clean Variables Challenge
Go Pro!Bootcamp

Bootcamp

Study group

Collaborate with peers in your dedicated #study-group channel.

Code reviews

Submit projects for review using the /review command in your #code-reviews channel

Clean Variables Challenge
AboutCommentsNotes
Clean Variables Challenge
Expand for more info
index.js
run
preview
console
// Clean Code: Variables Challenge 1

/**
* userNames: string[first, middle, last]
* return First Middle Initial Last Name
*/
function getUsersFullName(userNames) {
return userNames[0] + ' ' + userNames[1][0] + '. ' + userNames[2];
}

console.log(getUsersFullName(['Dylan', 'Christopher', 'Israel']));
Console
"Dylan C. Israel"
,
/index.html
-3:39