1. Copy the following programs into
dreamweaver and fix them to make
them work
<script type =”text/javascript”>
Var name= _____ (“enter your name”)
Document.write(____.substring (0,10));
</script>
2. <script type =”text/javascript”>
Var name= _____ (“enter your name”)
Document.write( “your name is”, ____.length , “letters
long”);
</script>
3. <script type =”text/javascript”>
Var num= _____ (“enter a number and it will be divided by 2”)
Var math= num ___ 2;
Document.write(math);
</script>
4. <script type =”text/javascript”>
Var num= _____ (“enter a number and it will be divided by 2”)
Var math= num ___ 2;
Document.write(math);
</script>
5. <script type =”text/javascript”>
Var name= _____ (“enter your name ”)
Var age= ___ (“enter your age”)
Document.write(____);
Document.write(___);
</script>
6. <script type =”text/javascript”>
Var name= _____ (“enter your name ”)
Var age= ___ (“enter your age”)
Document.write(____);
Document.write(___);
</script>