Last active
August 29, 2015 14:17
-
-
Save anhnt/46d868b19fed70353116 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Câu 1. Bạn hãy cho biết đoạn code sau sẽ in ra gì ở Javascript console | |
(function($){ | |
$(function(){ | |
var a = 1; | |
b = 2; | |
window.c = 3; | |
}); | |
})(jQuery); | |
console.log(a); | |
a = 4; | |
console.log(a); | |
console.log(b); | |
console.log(c); | |
Câu 2. Bạn hãy cho biết trong jQuery thì $('.classname') và $('#id') thì câu lệnh nào tối ưu hơn? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment