{"ScriptPreparationCode":"var el = document.getElementById(\u0027final\u0027)","TestCases":[{"Name":"Vanilla JS way","Code":"var target = el.closest(\u0027.b1\u0027)","IsDeferred":false},{"Name":"While loop way","Code":"var current = el\r\nwhile (true) {\r\n current = current.parentElement\r\n if (!current) break;\r\n if (current.classList.contains(\u0027b1\u0027)) break;\r\n}","IsDeferred":false}]}