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) }