Coding Exercise error handling

cancel
Showing results for 
Search instead for 
Did you mean: 

Coding Exercise error handling

Go to solution

Hello, 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 ?:

llermaly_0-1642988723389.png

 

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

1 ACCEPTED SOLUTION
Bella
Community Manager
Community Manager

Go to solution

Hey @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 

View solution in original post

1 Reply
Bella
Community Manager
Community Manager

Go to solution

Hey @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 

cancel
Showing results for 
Search instead for 
Did you mean: 
First-time course creation
Decided to take the plunge and create your own Udemy course? Check out some incredible Udemy success stories, and get inspired by your fellow instructors!
Top Liked Authors