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

11 lines
123 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:47 +02:00
bookId++;
2018-03-22 18:29:00 +02:00
return bookId;
}
console.log(genNewBookId());