AJavaScript global variableis declared outside the function or declared with window object. It can be accessed from any function.https://www.javatpoint.com/javascript-global-variable Let's assume that your target web application is vulnerable to a reflected XSS into a JavaScript string or in a...