veebikoolitus-2018-03-live/hello/app.js

12 lines
139 B
JavaScript
Raw Normal View History

2018-03-22 18:31:33 +02:00
"use strict;"
2018-03-22 18:29:00 +02:00
let bookId = 0;
function genNewBookId() {
2018-03-22 18:31:33 +02:00
bookID = 1;
2018-03-22 18:30:53 +02:00
bookID++;
2018-03-22 18:29:00 +02:00
return bookId;
}
console.log(genNewBookId());