scrimba
21 web dev tips for 2021 🎇
Tip 3: DRY Principle
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

AboutCommentsNotes
Tip 3: DRY Principle
Expand for more info
index.js
run
preview
console
// DRY - Don't Repeat Yourself


const students = ['Andy', 'Helena', 'Jose', 'Ian']

const listContainer = document.getElementById('list')
const listElement = document.createElement('ul')
listContainer.appendChild(listElement)

// Non Dry Code



// Dry Code

Console
/index.html
-6:52