この codecademy.com の演習では、each 関数を使用して jQuery 変数を反復処理し、id jQueryAttributes のリストにすべてのキーを追加することになっています。以下に各関数を書きましたが、正しくありません。jQueryAttributes で id に追加する方法がわかりません。Htmlは以下です
var jQuery = $;
//iterate over jQuery, adding every key
//to the list with id jQueryAttributes
$.each(jQuery, function(index, value){
$('#'+index).append($('<li></li>').html(value));
});
html
<div id="left">
<h1>$ methods and attributes</h1>
<ul id='jQueryAttributes'>
</ul>
</div>
アップデート
言い忘れたことを一つ。関数のインデックスを使用して、各リスト項目に異なる ID を割り当てることになっています。