Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Keywords used in javascript

6,443 views

Published on

Published in: Education, Technology
  • Be the first to comment

  • Be the first to like this

Keywords used in javascript

  1. 1. KEYWORDS USED IN JAVASCRIPT
  2. 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. 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. 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>

×