9 lines
120 B
JavaScript
9 lines
120 B
JavaScript
|
(function(){
|
||
|
while (demand > supply) {
|
||
|
sell();
|
||
|
restock();
|
||
|
}
|
||
|
while (supply > demand) {
|
||
|
buy();
|
||
|
}
|
||
|
})();
|