CodeAcademy courses begin completed for me


#1

Title.

Doing the Learn Javascript course. I am trying to redo some of it to help me fully understand it. Hitting Reset I get the prompt "Are you sure you want to restart? All of your code will be erased. I hit OK and instead of my code clearing, some brand new code appears that answers literally EVERYTHING from the course moving forward. If I manually clear the code and then hit next, I am then met with the same full, completed code again.

var orderCount = 0;
function takeOrder(topping, crustType) {
console.log('Order: ' + crustType + ' crust topped with ' + topping);
orderCount = orderCount + 1;
}

function getSubTotal(itemCount) {
return itemCount * 7.5;
}

function getTax() {
return getSubTotal(orderCount) * 0.06;
}

function getTotal() {
return getSubTotal(orderCount) + getTax();
}

takeOrder('bacon', 'thin');
takeOrder('sardines', 'regular');
takeOrder('pepperoni', 'deep dish');

console.log(getSubTotal(orderCount));
console.log(getTotal());

The above is what I am getting when I hit Reset or use the Get Help->Reset button. This is SO WEIRD because, when I did it the first time, my crustType s were Thin, Pan Crust and Gluten Free. So obviously this code is coming from somewhere else...

This is making it very hard for me to properly learn using your website.... I don't want the answers, I want to figure it out for myself. What is going on???????


#2

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.