Interactive website- shortcut -o


I have the following code but I still get an error asking me to try again. What could be wrong? I have checked the braces and parenthesis and they seem correct to me.

var main=function(){
       $(document).keypress(function(event) {
  if(event.which === 111) {


You wrote the word, article, in the first click function in double quotes. This is what you have:

This is what you should have:


Hope that helps and let me know if it works!


Thank you pinky_1. I made the change and it still does not work. I have been using double quote but it was working just fine.


I just checked the exercise and the instructions. The order of your code is wrong. It should be like this:

var main = function() {
    if(event.which === 111){



That should work. Let me know if it still does not work or if your problem is solved!


Thank you! I've been struggling with this exercise for a while now. :slight_smile: I wish you could get the code for the older lessons too. The older ones seem to have a different design.


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.