際際滷

際際滷Share a Scribd company logo
KEYWORDS USED IN
JAVASCRIPT
 Prompt, A prompt box is often used if you want the user to input a
value before entering a page.
 ParseInt, this changes anything we enter into a program into
numeric data/numbers. We mostly use this keyword for
mathematical programs.
 Document.write, this keyword will create a sentence that we
want the program to show to the user.
 Alert, An alert box is often used if you want to make sure
information comes through to the user.
FILL IN THE BLANKS,
LOOKING AT THE FOLLOWING CODE AND INPUT THE FOLLOWING
KEYWORDS TO MAKE PROGRAM WORK-
PROMPT , PARSEINT, DOCUMENT.WRITE
 Finding the perimeter of a square
<html>
<body>
<script type=text/javascript>
Var side = _____(enter the sides of the square,);
Side=______(side);
Var perimeter= 4*side;
___________(the perimeter of the square is:, perimeter);
</script>
</body>
</html>
FILL IN THE BLANKS,
LOOKING AT THE FOLLOWING CODE AND INPUT THE FOLLOWING
KEYWORDS TO MAKE PROGRAM WORK-
PROMPT , PARSEINT, ALERT
<html>
<body>
<script>
var number= ______("enter a number");
number=______(number * 20);
_____(number);
</script>
</body>
</html>
Keywords used in javascript

More Related Content

Keywords used in javascript

  • 2. Prompt, A prompt box is often used if you want the user to input a value before entering a page. ParseInt, this changes anything we enter into a program into numeric data/numbers. We mostly use this keyword for mathematical programs. Document.write, this keyword will create a sentence that we want the program to show to the user. Alert, An alert box is often used if you want to make sure information comes through to the user.
  • 3. FILL IN THE BLANKS, LOOKING AT THE FOLLOWING CODE AND INPUT THE FOLLOWING KEYWORDS TO MAKE PROGRAM WORK- PROMPT , PARSEINT, DOCUMENT.WRITE Finding the perimeter of a square <html> <body> <script type=text/javascript> Var side = _____(enter the sides of the square,); Side=______(side); Var perimeter= 4*side; ___________(the perimeter of the square is:, perimeter); </script> </body> </html>
  • 4. FILL IN THE BLANKS, LOOKING AT THE FOLLOWING CODE AND INPUT THE FOLLOWING KEYWORDS TO MAKE PROGRAM WORK- PROMPT , PARSEINT, ALERT <html> <body> <script> var number= ______("enter a number"); number=______(number * 20); _____(number); </script> </body> </html>