From ef00bb1d4355d9e85bf8713af89dd68b7ffcad66 Mon Sep 17 00:00:00 2001 From: Shubham Juneja Date: Sat, 20 Oct 2018 12:26:13 +0530 Subject: [PATCH] Fix indentation --- exercises/js/sandbox.js | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/exercises/js/sandbox.js b/exercises/js/sandbox.js index a878da4f..f65946d3 100644 --- a/exercises/js/sandbox.js +++ b/exercises/js/sandbox.js @@ -1,25 +1,24 @@ //Add five new list items to the end of the unordered list #myList. -div=$('
') -listItem=$('
  • ').html('List item') -for(var i=0; i<5; i++) { +div = $('
    '); +listItem = $('
  • ').html('List item'); +for (var i = 0; i < 5; i++) { div.append(listItem.clone()); } $('#myList').append(div); - //Remove the odd list items -$('li:nth-child(odd)').remove() +$('li:nth-child(odd)').remove(); //Add another h2 and another paragraph to the last div.module var heading = $('

    ').text('Hello'); var paragraph = $('

    ').text('Yes it is.'); -var newDiv = $('

    ').append(heading,paragraph); +var newDiv = $('
    ').append(heading, paragraph); $('div.module').last().append(newDiv); //Add another option to the select element; give the option the value "Wednesday" -var option = $('