veebikoolitus-2018-03-live/hello/app.js
2018-03-22 18:31:19 +02:00

12 lines
125 B
JavaScript

let bookId = 0;
function genNewBookId() {
bookID = 1
bookID++;
return bookId;
}
console.log(genNewBookId());