Download presentation
Presentation is loading. Please wait.
1
JavaScript
2
Inserting JavaScript
3
Comments A single line comment in javascript occupies a single line and may be inserted by starting it with two slashes.A multi-line comment should be enclosed using /* and */.
4
Case Sensitivity Be careful in writing your codes especially with upper and lower case. Remember that in JavaScript, A is different from a. Variables and function calls written differently will result to an error.
5
Variables A variable is a temporary storage for values that you will use in your program.
6
Data Types A string value is enclosed in single or double quotes and may contain any character or set of characters. Numeric types are composed of numbers that are being used for calculations. Boolean types provide results that is either true or false. Null does not have any value.
7
Statements It can either be declaration, function calls, or commands. The prompt() function is used to display a dialog box that will ask the user to enter a number in the textbox.
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.