From 78ba96e5bfbd121b7ddac6197ebaf936bf42f0e9 Mon Sep 17 00:00:00 2001 From: Carlos Garcia Date: Fri, 10 Mar 2023 08:11:59 -0300 Subject: [PATCH] =?UTF-8?q?Para=20manter=20o=20hoisting=20consistente=20e?= =?UTF-8?q?=20exemplo=20claro!=20Corrigido=20o=20nome=20da=20vari=C3=A1vel?= =?UTF-8?q?=20no=20escopo=20do=20callback?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- async & performance/ch1.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/async & performance/ch1.md b/async & performance/ch1.md index cd90a832..aed18990 100644 --- a/async & performance/ch1.md +++ b/async & performance/ch1.md @@ -57,8 +57,8 @@ function now() { } function later() { - a = a * 2; - console.log( "Signficado da vida:", a ); + answer = answer * 2; + console.log( "Signficado da vida:", answer ); } var answer = now();