X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;ds=sidebyside;f=examples%2Fjavascript%2FdynamicExample.js;h=33fdec970c6a9de20aa431f353d71c627bb80e71;hb=4422e8c030c39672fe823c5d08ad7eaf8ceaced3;hp=ad79ba20294135dfc4569f1795151ae24f8ea3fc;hpb=7a923e5bc16ae3524c51bedd70c65ce6cc556fdc;p=poolifier.git diff --git a/examples/javascript/dynamicExample.js b/examples/javascript/dynamicExample.js index ad79ba20..33fdec97 100644 --- a/examples/javascript/dynamicExample.js +++ b/examples/javascript/dynamicExample.js @@ -30,10 +30,10 @@ for (let i = 1; i <= iterations; i++) { .then(() => { resolved++ if (resolved === iterations) { - console.info('Time taken is ' + (performance.now() - start)) - console.info('The pool was full for ' + poolFull + ' times') - console.info('The pool was ready for ' + poolReady + ' times') - return console.info('The pool was busy for ' + poolBusy + ' times') + console.info(`Time taken is ${performance.now() - start}`) + console.info(`The pool was full for ${poolFull} times`) + console.info(`The pool was ready for ${poolReady} times`) + return console.info(`The pool was busy for ${poolBusy} times`) } return null })