Skip to content

Fix Get JSON challenge text & quote specificity  #3969

@henryamster

Description

@henryamster

Challenge Waypoint: Get JSON with the jQuery getJSON Method has an issue.
User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.81 Safari/537.36.
Please describe how to reproduce this issue, and include links to screenshots if possible.

Exercise not accepting single quotes & has "You should have at least on closing set of brackets and parenthesis." instead of "You should have at least one closing set of brackets and parenthesis."

My code:

<script>
 $(document).ready(function() {

   $("#getMessage").on("click", function(){
    // Only change code below this line.
$.getJSON('/json/cats.json?callback=', function (json){

  $('.message').html(JSON.stringify(json))
});


    // Only change code above this line.
   });

 });
</script>

<div class="container-fluid">
 <div class = "row text-center">
   <h2>Cat Photo Finder</h2>
 </div>
 <div class = "row text-center">
   <div class = "col-xs-12 well message">
     The message will go here
   </div>
 </div>
 <div class = "row text-center">
   <div class = "col-xs-12">
     <button id = "getMessage" class = "btn btn-primary">
       Get Message
     </button>
   </div>
 </div>
</div>

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions