//Use jQuery by including a script tag in your html and using this as your CDN source: "https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"

//Make sure the page has loaded and is ready to be manipulated:  
  
  //1. Select the element with id "main-heading" and log its text to console.
  var mainheading = $("#main-heading").html();
  console.log(mainheading);

  //2. Select the element with class "first-section" and log its text to console.
  var firstsection = $(".first-section").html();
  console.log(firstsection);

//3. Select elements with the html tag h3 and log its text to console.
  var h3 = $("h3");

h3.each(function(currentElement){
  console.log("h3 tags", currentElement.html());
});

//4. Select the second item in the list(using the class "list-item") and log its text to console.

console.log("Second list item:", $(".list-item").eq(1).html());