From 6733598155fd6476a7a3d0237bc490cac2d10e21 Mon Sep 17 00:00:00 2001 From: DevMojtaba <99162383+DevMojtaba@users.noreply.github.com> Date: Tue, 9 Aug 2022 14:33:45 +0430 Subject: [PATCH] Fixed Bug --- Javascript Basics/Extract first half of string.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Javascript Basics/Extract first half of string.js b/Javascript Basics/Extract first half of string.js index b7c426e..6c865e7 100644 --- a/Javascript Basics/Extract first half of string.js +++ b/Javascript Basics/Extract first half of string.js @@ -3,5 +3,5 @@ // Return the result function myFunction(a) { - return a.slice(a.count / 2) + return a.slice(0, a.length / 2) }