Some common functions used in JavaScript

 JavaScript provides some built-in functions to perform different operations

  • alert(message) function
    • Used to show a dialog
  • confirm(message) function
    • Used to ask something from you with Ok and Cancel buttons
    • If clicked on Ok button then treated as true else treated as false

Comments

Post a Comment