The eval() method is
incredibly powerful allowing you to execute snippets of code during execution.
<script
type="text/javascript">
var USA_Texas_Austin =
"521,289";
document.write("Population
is "+eval("USA_"+"Texas_"+"Austin"));
</script>
This produces
Population is 521,289
No comments:
Post a Comment