how to read an array in javascript in HTML5
<body>
<h1>Creating Arrays</h1>
<h2>Regular:</h2>
<script language="JavaScript">
// Create the array.
var Colors = new Array();
// Fill the array with data.
Colors[0] = "Blue";
Colors[1] = "Green";
Colors[2] = "Purple";
// Display the content onscreen.
document.write(Colors);
</script>
<h2>Condensed:</h2>
<script language="JavaScript">
// Create the array and fill it with data.
var Colors = new Array("Blue", "Green", "Purple");
// Display the content onscreen.
document.write(Colors);
</script>
<h2>Literal:</h2>
<script language="JavaScript">
// Create the array and fill it with data.
var Colors = ["Blue", "Green", "Purple"];
// Display the content onscreen.
document.write(Colors);
</script>
</body>
Also in HTML:
- html create a multi-line text input
- html add vertical space below
- reset image tag js
- remove border in ion item
- start html
- iframe youtube playlist not working html
- reactive forms radio button
- how to add a paragraph in html
- angular property binding
- set icon for html page tab
- minimum width of different devices in html
- string to html javascript react
- adding space tab in html
- how to eliminate scroll bar in html
- theme colur in html
- input is a void element tag and must neither have `children` not use `dangerouslySetInnerHTML`.
- how to stop download option in video tag of HTML
- vue render html raw
- xbox roblox games
- form action html
- redirect html
- how to do a line break in html
- nested list html
- svg circle