From 5deea33a7e0b63d226909dce8f1e2ecf54640d5b Mon Sep 17 00:00:00 2001 From: Fitsumhelina Date: Thu, 21 Nov 2024 20:52:44 +0300 Subject: [PATCH] 90% solved --- Test/01-js-refresher.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Test/01-js-refresher.js b/Test/01-js-refresher.js index 6f52d67..3038dfc 100644 --- a/Test/01-js-refresher.js +++ b/Test/01-js-refresher.js @@ -64,8 +64,13 @@ console.log(itCompanies.reverse()) // Slice out the first 3 companies from the array console.log(itCompanies.slice(0, 3)) // Slice out the last 3 companies from the array +console.log(itCompanies.slice(-3)) // Slice out the middle IT company or companies from the array +console.log(itCompanies.slice(3, 4)) // Remove the first IT company from the array +console.log(itCompanies.shift()) // Remove the middle IT company or companies from the array +console.log(itCompanies.splice(3, 1)) // Remove the last IT company from the array +console.log(itCompanies.pop()) // Remove all IT companies \ No newline at end of file