Advanced JavaScript Injections
Cross Site Scripting (XSS)
There are cases where the injection point lands in the middle of a more complex JS code: inside functions and conditionals (if or if+else), nested inside each other.
https://brutelogic.com.br/blog/advanced-javascript-injections/