a Given the following code segment:
<html>
<body>
<script type=”text/JavaScript”>
Var mypets=new Array ()
mypets [0] =”cat”
mypets [1] =”dog”
mypets [2] =”rabbit”
b Use for statement to output the values of the array mypets
c Explain the output of the following JavaScript statements
Var age =24
Var allowed=(age>18)? “Yes”: “No”;
d What is the significance of the operator used in (c) above