scrimba
Clean Code
Clean Functions: Naming and Standardization (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 Functions: Naming and Standardization (Challenge)
AboutCommentsNotes
Clean Functions: Naming and Standardization (Challenge)
Expand for more info
index.js
run
preview
console
// Clean Code: Naming and Standardization Challenge

function addmessage(message) {
const messageData = {...message, type: 'EMAIL'};

// adds message to the DB
}

function emptyAdmin(id) {
return { type: 'Admin'}
}

function removeUserById(id) {
// delete user
}

function deleteAdminById(id) {
// delete admin
}
Console
/index.html
-2:12