Help

Hi,

This code checks out by the lesson but does not work. Pls help

Best Regards
Trishna

Hi there.

In your main.js, you’re redeclaring a constant:

// Information to reach API
const apiKey = '<Your API Key>';
const url = 'https://api.rebrandly.com/v1/links';
const apiKey ='3dea4d8219fd444283eb85f1f85bafb5';

You can’t declare a const twice, so your API key will always be <Your API Key> which is not a valid API key. :slight_smile:

The LE doesn’t always check that your code works, but sometimes looks to see whether you’ve written the expected lines - so if you did what it asked, you might pass the exercise with nonfunctional code. :slight_smile:

Thank you. Made the change and it words, Will ensure to check the code many times.

1 Like