Why can I not use a dollar sign?


#1



Exercise 6


My answer returns as:
$25
$25
While I do know how to get the right answer, why does it not allow me to have $25 as an answer and why does it print out two copies?


var orangeCost = function(price)
{
    console.log("$" + price*5)
}
orangeCost(5)


#2

@rottenasian,
As you use the Submit button
on the =background= a course-checker= is running its tests....
some times giving its own output.....

The course-checker is checking the =console-output= for a number VALUE 25
as is requested in the Instructions.....

As a proof
use your code
like

var orangeCost = function(price)
{
    console.log("$" + price*5)
}
orangeCost(5)
console.log( "== My End ==" );
console.log( "== All that is displayed now, is the course-checker ==" );

#3

Ah ok, thank you, that makes more sense. Thought it is asking for a price and I would assume that would require a dollar sign, but that the design decision. Thank you for your time.