|
Scope Scoop
Written by Sally |
|
| | Audioscopes are a great way to learn Byte Budget. And once you learn how to do this simple script you'll wonder why you did not learn it sooner.
Like all javascript we start and end with the script tag. Then we make our audioscope a "variable".
var a = " ";
Notice the entire HTML is enclosed in quotes but none are used inside the tags. A semicolon follows all variables containing HTML.
Now we tell the browser to write the variable eight times.
with(document){
write(a+a+a+a+a+a+a+a+);
}
This is the result.
|
|