First page Back Continue Last page Image
- function saySomething() {
- alert("Hello");
- }
- A function performs some sort of task in your program and is identified by the keyword "function"
- The name of the function in camel notation follows the keyword "function". Remember you the programmer create this name
- The Curly Braces { } mark the start and end of the function
- The parenthesis indicate what variables are passed to the function, in this case none.
- The semicolon is the end of line syntax