View source to see what's going on under the hood.
This is a paragraph with little content.
Holy crap! Did that sentence just vanish?!
$(document).ready(function () { $("p#cb1").css("display", "none") $("button.callback1").click(function () { $("p.cb1").hide("slow", function () { var myTimer = window.setTimeout(function () { $("#cb1").slideDown(250); }, 600); /*alert("The paragraph is now hidden");*/ }); }); });
hash_hkdf
Star Wars or Star Trek?
append
Hi, this is a string of text.
click array
closure
palindrome
Load the appropriate number array.
Here's the array: var list = [5, 8, 9, 2, 7, 6, 3, 1, 4];
$(document).ready(function () { var list = [ 5, 8, 9, 2, 7, 6, 3, 1, 4 ]; $("#btn2").click(function () { // items greater than 5 function callback2(list) { var newList = []; for (var i = 0; i < list.length; i++) { if (list[i] > 5) newList.push(list[i]); } return newList; } function filter2(list, callback2) { return callback2(list); } var filtered2 = filter2(list, callback2); //console.log(filtered2); $("p.two").append(filtered2); }); });