My current code is (inbetween the header and body tags, etc):
<script>
var products = ["Printer", "Router", "Tablet", "Keyboard", "Javascript", "HTML"];
products.sort();
document.write(products);
<br></br>
document.write("The amount of products in the array is " + products.length);
</script>
However when I run this code nothing turns up on the webpage.
As stated, this is using dreamweaver, specifically dreamweaver CS5.
Can anyone tell me how to get a break between the lines displaying "document.write(products)" and the last document.write without all my code disappearing?
Thanks
` within script? That shouldn't be there – mai May 24 '16 at 08:40