function orderBlock(price) {
let buyOrder;
let sellOrder;
let orderBlock;
buyOrder = { type: 'buy', price: price, size: 100 };
sellOrder = { type: 'sell', price: price, size: 100 };
orderBlock = [buyOrder, sellOrder];
return orderBlock;
}
let price = 50;
let myOrderBlock = orderBlock(price);
console.log(myOrderBlock);