Tell us what’s happening:
A part of my code is greyed out. I would fix the syntax error myself, but I believe it is a bug in the program. Any help with formatting would be appreciated.
I’m really trying to complete these exercises rather than skipping through it.
Your code so far
const apiKey = 'I. AIzaSyB2sfWuybVQXFLw3x7YEq1HsIse6YR55Gw';
const url = https://www.googleapis.com/urlshortener/v1/url
///starting with the double forward slash all the others are greyed out
///(or is it greyed out?) Will this correct itself when I move to other steps?
// Some page elements
const $inputField = $('#input');
const $expandButton = $('#expand');
const $shortenButton = $('#shorten');
const $responseField = $('#responseField');
// AJAX functions
function expandUrl() {
const = url + '?shortUrl=' + $inputField.val() + '&key=' + apiKey;
};
function shortenUrl() {
};
function expand() {
$responseField.empty();
expandUrl();
return false;
};
function shorten() {
$responseField.empty();
shortenUrl();
return false;
};
$expandButton.click(expand);
$shortenButton.click(shorten);
// Only change code below this line.
};
**Your browser information:**
Your Browser User Agent is: ```Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36```.
**Link to the challenge:**
https://www.freecodecamp.org/challenges/declare-javascript-objects-as-variables