<script>
var a ="test";
alert(a);
alert(window["a"]);
alert(eval("a"));
</script>
More Related Contents:
- How to deep merge instead of shallow merge?
- Get String in YYYYMMDD format from JS date object?
- Set CSS property in JavaScript?
- How to go to a specific element on page? [duplicate]
- Checking if jquery is loaded using Javascript
- Download and open PDF file using Ajax
- What are passive event listeners?
- Pdf.js: rendering a pdf file using a base64 file source instead of url
- Using execCommand (Javascript) to copy hidden text to clipboard
- Angular 2 Karma Test ‘component-name’ is not a known element
- What are Closures and Callbacks?
- Accessing the content of other tabs in a browser
- How to detect element being added/removed from dom element?
- Google Maps: How to create a custom InfoWindow?
- How to get year/month/day from a date object?
- How to restrict the selectable date ranges in Bootstrap Datepicker?
- While loop using bluebird promises
- Any way to get a bounding box from a three.js Object3D?
- Check if HTML snippet is valid with JavaScript
- How to update state with usestate in an array of objects?
- Passing variable in parent scope to callback function
- Why are function declarations handled differently in different browsers?
- Available iPhone Web Application JavaScript UI Library/Frameworks
- Does strict mode work differently with React 18?
- How to create “credential” object needed by Firebase web user.reauthenticateWithCredential() method?
- fadeOut() and slideUp() at the same time?
- ASYNC / AWAIT SyntaxError: await is only valid in async functions and the top level bodies of modules
- Disable brower’s auto scroll after a page refresh?
- Jquery change text between two elements
- Performance impact of using css / javascript source-maps in production?