Line break


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');




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


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