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

12 lines
125 B
JavaScript
Raw Normal View History

2018-03-22 18:31:06 +02:00
2018-03-22 18:29:00 +02:00
let bookId = 0;
function genNewBookId() {
2018-03-22 18:31:19 +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());