01-23-2022 05:46 PM
Go to solutionHello, I'm creating my first exercise in Javascript but looks like I'm doing something wrong because if the answer is wrong then the error will suggest the answer to the student. How can I hide this ?:
Solution
```
function allQuery() {
return {"query": {"match_all": {}}}
}
```
Test
```
describe('allQuery()', function() {
it('should return match_all query', function() {
const solution = {"query": {"match_all": {}}}
expect(allQuery()).toEqual(jasmine.objectContaining(solution))
});
});
```
Thanks
Solved! Go to Solution.
01-24-2022 12:01 PM
Go to solutionHey @llermaly, sorry for the trouble you had creating your first coding exercise. This article explains in detail how to create coding exercises in the platform and some troubleshooting steps. If you're still having issues, please contact our Instructor Support team they'll be happy to assist!
Bella Almeida
Udemy Community
01-24-2022 12:01 PM
Go to solutionHey @llermaly, sorry for the trouble you had creating your first coding exercise. This article explains in detail how to create coding exercises in the platform and some troubleshooting steps. If you're still having issues, please contact our Instructor Support team they'll be happy to assist!
Bella Almeida
Udemy Community
User | Likes Count |
---|---|
8 | |
6 | |
4 | |
3 | |
3 |
Ooops, it looks like you’re not a registered Udemy instructor. Want to become an instructor? We’d love to have you!
Become an instructor Already an instructor? Sign in
You can join the Instructor Club after you publish your first course. In the meantime, you’ll find plenty of help and advice in Studio U.