Note: This Question is unanswered, help us to find answer for this one
More E4X (ECMAScript For XML) MCQ Questions
Which method would give the output corresponding to the code snippet? var test =
Thanks for your Feedback.
We will responsd you ASAP.
Surver Busy. Please try again later.
') } } }) }else{ $('#text').addClass('border-danger'); $('#email').addClass('border-danger'); } }) var answers = 1; var r_answers = 0; var next_len = 0; $('.ans-option').on('click',function(e){ let check = $(this).attr('check'); let label = $(this).closest('.ans-options'); if(check === 'right'){ if(label.hasClass('right-answer')){ label.addClass('right-answer'); label.removeClass('right-answer'); label.children('.legend').hide(); }else{ label.addClass('right-answer'); label.children('.legend').text('Correct Answer'); label.children('.legend').show(); // answers--; // if(answers === 0){ // $('.show-ans').hide(); // $('.next-q').css('display', 'block'); // } } }else if(check === 'worng'){ if(label.hasClass('wrong-answer')){ label.removeClass('wrong-answer'); label.children('.legend').hide(); }else{ label.addClass('wrong-answer'); label.children('.legend').text('Your Answer'); label.children('.legend').show(); } }else{ $('.unanswer').slideDown('fast'); if(label.hasClass('dont-know')){ label.removeClass('dont-know'); label.children('.legend').hide(); }else{ label.addClass('dont-know'); label.children('.legend').text("Don't Know"); label.children('.legend').show(); } } }); $('.show-ans').on('click',function(){ let check = $(this).attr('show'); if($(this).hasClass('no-hide')){ if(check === '0'){ $(this).closest(".mcq-area").find('.ans_div').slideDown('slow'); $(this).attr('show','1'); $(this).text('Hide Answer'); }else{ $(this).closest(".mcq-area").find('.ans_div').slideUp('slow'); $(this).attr('show','0'); $(this).text('Check Answer'); } } $(this).closest(".mcq-area").find('.ans-option').each(function(){ let check_ans = $(this).attr('check'); let label = $(this).closest(".ans-options"); if(check_ans === 'right' && check == 0){ label.addClass('right-answer'); label.children('.legend').text('Correct Answer'); label.children('.legend').show(); }else if(check_ans === 'right' && check == 1){ label.removeClass('right-answer'); label.children('.legend').text(''); label.children('.legend').hide(); } }); if(!$(this).hasClass('no-hide')){ let check_last = $(this).prev('.next-ques'); let last = $('.next-ques').last(); if(!$(this).hasClass('no-hide')){ $(this).hide(); } if(last[0] == check_last[0]){ $(this).siblings('.next-q').css('display', 'block'); }else{ $(this).prev().css('display', 'block'); } } }) $('.next-ques').on('click',function(){ let next = $(this).parents('.mcq-area').next(); let check_last = $(this); let last = $('.next-ques').last(); if(last[0] !== check_last[0]){ $('html, body').animate({ scrollTop: next.offset().top }, 0); } }) function WindowCenter(url, title, w, h) { var dualScreenLeft = window.screenLeft != undefined ? window.screenLeft : screen.left; var dualScreenTop = window.screenTop != undefined ? window.screenTop : screen.top; width = window.innerWidth ? window.innerWidth : document.documentElement.clientWidth ? document.documentElement.clientWidth : screen.width; height = window.innerHeight ? window.innerHeight : document.documentElement.clientHeight ? document.documentElement.clientHeight : screen.height; var left = ((width / 2) - (w / 2)) + dualScreenLeft; var top = ((height / 2) - (h / 2)) + dualScreenTop; var newWindow = window.open(url, title, 'scrollbars=yes, width=' + w + ', height=' + h + ', top=' + top + ', left=' + left); } $('.facebook').click(function(){ WindowCenter("https://www.facebook.com/sharer/sharer.php?u=https://quizack.com/e4x-test/mcq/which-of-the-following-options-can-be-used-to-delete-a-child-node-of-an-xml-object-in-e4x","Share this page on Facebook","600","500"); }) $('.twitter').click(function(){ WindowCenter("https://twitter.com/intent/tweet?url=https://quizack.com/e4x-test/mcq/which-of-the-following-options-can-be-used-to-delete-a-child-node-of-an-xml-object-in-e4x","Share this page on Facebook","600","500"); }) $('.linkin').click(function(){ WindowCenter("https://www.linkedin.com/shareArticle?mini=true&url=https://quizack.com/e4x-test/mcq/which-of-the-following-options-can-be-used-to-delete-a-child-node-of-an-xml-object-in-e4x","Share this page on Facebook","600","500"); }) $('.whatsapp').click(function(){ WindowCenter("whatsapp://send?text= at https://quizack.com/e4x-test/mcq/which-of-the-following-options-can-be-used-to-delete-a-child-node-of-an-xml-object-in-e4x","Share this page on Whatsapp","600","500"); }) });