Consider following code snippet?

$.each([1,2,3], function() {
  document.write(this + 1);
});
What will be printed to the page?
Explanation
The each() method specifies a function to run for each matched element. In our code example, the each() method iterates through an array [1,2,3] and print it's elements + 1 to the page.

Следи за CodeGalaxy

Мобильное приложение Beta

Get it on Google Play
Обратная Связь
Cosmo
Зарегистрируйся сейчас
или Подпишись на будущие тесты