If you look at the picture closely what David did was more like this:
var taskString = ''; var tasks = $('.taskList .task .title .link-title').text(function(index, value) { taskString = taskString + '- ' + value + "\n"; }); console.log(taskString); copy(taskString);
If you look at the picture closely what David did was more like this:
var taskString = ''; var tasks = $('.taskList .task .title .link-title').text(function(index, value) {
taskString = taskString + '- ' + value + "\n";
}); console.log(taskString); copy(taskString);