From c503861b6839fcf9bb87c1ff7a6f4a9d2689fced Mon Sep 17 00:00:00 2001 From: Ilenia <26656284+ilenia-magoni@users.noreply.github.com> Date: Wed, 29 Oct 2025 11:20:35 +0100 Subject: [PATCH] feat(curriculum): add example to element skipper lab (#63079) Co-authored-by: Huyen Nguyen <25715018+huyenltnguyen@users.noreply.github.com> --- .../blocks/lab-element-skipper/a5deed1811a43193f9f1c841.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/curriculum/challenges/english/blocks/lab-element-skipper/a5deed1811a43193f9f1c841.md b/curriculum/challenges/english/blocks/lab-element-skipper/a5deed1811a43193f9f1c841.md index 945d2604cdc..4f7f514e341 100644 --- a/curriculum/challenges/english/blocks/lab-element-skipper/a5deed1811a43193f9f1c841.md +++ b/curriculum/challenges/english/blocks/lab-element-skipper/a5deed1811a43193f9f1c841.md @@ -7,7 +7,9 @@ dashedName: implement-an-element-skipper # --description-- -In this lab you will create a function that skips elements in an array based on a specified step value. +In this lab you will create a function that skips elements in an array until it finds an acceptable one based on a specific test function. + +For example, for an array like `[1, 1, 1, 2, 1, 1, 1]` and a test function `function(n) {return n === 2}`, the first element that is acceptable for this is the one at index 3, so all the elements before that need to be discarded, and the output should be the remaining elements `[2, 1, 1, 1]`. **Objective**: Fulfill the user stories below and get all the tests to pass to complete the lab.