From 93ad076820bab69602630fa1e7dc3fa78b96e3ab Mon Sep 17 00:00:00 2001 From: Arti Zirk Date: Thu, 22 Mar 2018 18:29:00 +0200 Subject: [PATCH] 1521736140 --- hello/app.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/hello/app.js b/hello/app.js index 5dd518b..d1d62cd 100644 --- a/hello/app.js +++ b/hello/app.js @@ -1 +1,10 @@ -console.log("Hello!") +"use strict;" + +let bookId = 0; + +function genNewBookId() { + bookId++; + return bookId; +} + +console.log(genNewBookId());