/ Published in: JavaScript
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
var a = "hello"; window[a] = "world"; alert(a + " " + hello); alert(a + " " + window[a]); alert(a + " " + window["hello"]);