View stunning SlideShares in full-screen with the new iOS app!Introducing SlideShare for AndroidExplore all your favorite topics in the SlideShare appGet the SlideShare app to Save for Later — even offline
View stunning SlideShares in full-screen with the new Android app!View stunning SlideShares in full-screen with the new iOS app!
• <script>• var C= 25• var K= C + 273.15• alert(""+K+"");• document.write(""+K+"");• </script>• <script>• var celsius= parseFloat(prompt("Enter Celsius "," "));• var kelvin= celsius + 273.15• alert(""+kelvin+"");• document.write(""+kelvin+"");
• <html>• <body>• <script>• var name= prompt("Enter your name "," ");• var school= prompt("Enter your school "," ");• var yearlevel= prompt("Enter your year level "," ");• var section= prompt("Enter your section "," ");• document.write(""+name+"" + "<br>");• document.write(""+school+"" + "<br>");• document.write(""+yearlevel+"" + "<br>");• document.write(""+section+"" + "<br>");• </script>• </body>• </html>
One Statement, Many Variables• You can declare many variables in one statement. Just start the statement with var and separate the variables by comma:• var name="Doe", age=30, job="carpenter";• Your declaration can also span multiple lines:• var name="Doe", age=30, job="carpenter";