From 4cc6053dd02c292c5b09a0cc765c400eef4b0870 Mon Sep 17 00:00:00 2001 From: inger-na <59580764+inger-na@users.noreply.github.com> Date: Mon, 25 Apr 2022 17:26:46 +0200 Subject: [PATCH] added output to console argument fileName is now output to the console --- JavaScript/3-callback-named.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/JavaScript/3-callback-named.js b/JavaScript/3-callback-named.js index 9b755f0..15f1630 100644 --- a/JavaScript/3-callback-named.js +++ b/JavaScript/3-callback-named.js @@ -3,7 +3,7 @@ const fs = require('fs'); const print = (fileName, err, data) => { - console.log({ lines: data.split('\n').length }); + console.log({ fileName, lines: data.split('\n').length }); }; const fileName = './1-callback.js'; pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy