scrimba
Frontend Career Path
Code reviews
Code Reviews
What to look for in a code review
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

What to look for in a code review
AboutCommentsNotes
What to look for in a code review
Expand for more info
index.js
run
preview
console
function calculate_price(basePrice) {
console.log("Calculating final price...");
let discount = getDiscount(basePrice)
const final_price = basePrice - discount
return final_price;
}

let getDiscount = function(basePrice) {
let currentDiscount = 0;
if (basePrice > 100) {
return 20
} else {
return 10;
}
}
Console
/index.html
-5:35