submitting Homework 4 #10

Merged
merged 1 commit into from Dec 21, 2018

Conversation

Projects
None yet
2 participants
@luisynayan

luisynayan commented Dec 17, 2018

No description provided.

@vodnik

vodnik approved these changes Dec 21, 2018

Nice work, Luigi!

})

$('#print').on('click', function(){
for (let i = 0; i < favorites.length; i++){

This comment has been minimized.

@vodnik

vodnik Dec 21, 2018

Owner

This is a well written for loop for this purpose, Luigi.

let $listItem = $('<li>').addClass('form-group padout');
let $itemLabel = $('<label>' + $('#question').val() + '</label>');
let $textBox = $('<input type = "text">').addClass('form-control');
$listItem.addClass('form-group padout').append($itemLabel).append($textBox).append($('<button>').html("Remove question"));

This comment has been minimized.

@vodnik

vodnik Dec 21, 2018

Owner

Extreme chaining! 🔥 This is a great proof of concept. Also a useful illustration of how chaining too many methods can make the code a little harder to understand, no? 😃

@vodnik vodnik merged commit 77fff3b into vodnik:master Dec 21, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment