12 lines
125 B
JavaScript
12 lines
125 B
JavaScript
|
|
|
|
let bookId = 0;
|
|
|
|
function genNewBookId() {
|
|
bookID = 1
|
|
bookID++;
|
|
return bookId;
|
|
}
|
|
|
|
console.log(genNewBookId());
|