jQuery - Sample Interview Question (Senior Level)

Which of the following approaches to create a div element is the most efficient one?

Approach A
var div = $('<div></div>');                    

Approach B
var div = $('<div>');                          

Approach C
var div = $( document.createElement('div') );  

  1. A
  2. B
  3. C
  4. They all have the same efficiency
Tests in jQuery for Seniors

Test Name Difficulty Time (minutes) No. of Questions
jQuery Online Test for Seniors jQuery Senior 20 10