Home >Web Front-end >JS Tutorial >JavaScript common functions_javascript skills
Javascript functions can be divided into five categories:
· Regular functions
· Array functions
· Date functions
· Mathematical functions
· String functions
1. Regular functions
javascript regular functions include the following 9 functions:
(1) alert function: displays a warning dialog box, including an OK button.
(2)confirm function: Display a confirmation dialog box, including OK and Cancel buttons.
(3)escape function: Convert characters into Unicode codes.
(4) eval function: calculates the result of an expression.
(5) isNaN function: Test whether (true) or not (false) is not a number.
(6)parseFloat function: Convert a string into dotted digital form.
(7)parseInt function: Convert the string into integer digital form (the decimal system can be specified).
(8)prompt function: Display an input dialog box, prompting to wait for user input. For example: