I want to print something like:
#
##
###
####
#####
######
#######
My code is:
<html>
<head>
<title>Learning Javascript</title>
</head>
<body>
<script type="text/javascript">
for (var i = 1; i <= 7; i++) {
for ( var j = 1 ; j <= i ; j++ )
{
console.log("#");
}
}
</script>
</body>
</html>
It gives only a single #:
#
Why am I not getting expected output in console log? I have tried both chrome and firebug.
