javascript-tutorial / javascript-tutorial/en.javascript.info
Array methods [Tasks] Filter range "in place" typo
還沒有人認領這個 Issue。
- 主要語言
- HTML
- 星號
- 25.5k
- 分支
- 4k
- PR 合併指標
- 30 天內沒有已合併 PR
描述
(The page in question)
### [Filter range "in place"]
> Write a function filterRangeInPlace(arr, a, b) that gets an array arr and removes from it all values except those that are between a and b. The test is: a ≤ arr[i] ≤ b.
the 'between' in task description implies excluding numbers 1 and 4 so only 2 and 3 should be valid.
`let arr = [5, 3, 8, 1];`
`filterRangeInPlace(arr, 1, 4); // removed the numbers except from 1 to 4`
`alert( arr ); // [3, 1]`
Yet here we have 1 along with 3. The answer is also same as previous task filterRange. Please fix the wording or use an && operator in the solution.
貢獻指南
這個儲存庫沒有索引到貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
研究方向
從連結的 Array methods 頁面和「Filter range "in place"」任務開始,包括其範例和答案。根據所述的包含性測試 a ≤ arr[i] ≤ b 檢查措辭和解決方案;當任務、範例和答案一致地描述預期的範圍行為時即完成。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- javascript
- 領域
- documentation
- Issue 類型
- 文件
- 難度
- 1/5
- 預估耗時
- 1 小時以內
- 活躍度
- 停滯
- 描述清晰度
- 基本清楚
- 新手友好度
- 50/100