Hướng dẫn thử thách
1 / 1
Implement the Mutations Algorithm
**Objective:** Fulfill the user stories below and get all the tests to pass to complete the lab.
**User Stories:**
1. Create a function named `mutation` that takes an array as its argument.
1. `mutation` should return `true` if the string in the first element of the array contains all of the letters of the string in the second element of the array, and `false` otherwise. For example:
- `mutation(["hello", "Hello"])`, should return `true` because all of the letters in the second string are present in the first, ignoring case.
- `mutation(["hello", "hey"])` should return `false` because the string `hello` does not contain a `y`.
- `mutation(["Alien", "line"])`, should return `true` because all of the letters in `line` are present in `Alien`.
Vượt qua bài kiểm tra hiện tại để mở khóa bài tiếp theo.
main.js
UTF-8 • Tab Size: 2Kiểm tra bài:⌘↵