Line break


#1

how can I add line break in javascript code?
like in this code..

var orderCount = 0;
function takeOrder(topping, crustType) {
console.log('Order: '+crustType+' pizza 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 crust');
takeOrder('bacon', 'thick crust');
takeOrder('cheese', 'thin crust');

console.log(getSubTotal(3));

console.log(getTotal())


#2

Try using \n ('new line') in the string (between the sentences you want to break).


#3

I did use \n and the webpage came out to be blank.