CBSE Class 10 Computer Science Web Scripting Using JavaScript Notes

Download CBSE Class 10 Computer Science Web Scripting Using JavaScript Notes in PDF format. All Revision notes for Class 10 Computers have been designed as per the latest syllabus and updated chapters given in your textbook for Computers in Standard 10. Our teachers have designed these concept notes for the benefit of Grade 10 students. You should use these chapter wise notes for revision on daily basis. These study notes can also be used for learning each chapter and its important and difficult topics or revision just before your exams to help you get better scores in upcoming examinations, You can also use Printable notes for Class 10 Computers for faster revision of difficult topics and get higher rank. After reading these notes also refer to MCQ questions for Class 10 Computers given our website

Revision Notes for Class 10 Computers Web Scripting Using JavaScript

Class 10 Computers students should refer to the following concepts and notes for Web Scripting Using JavaScript in standard 10. These exam notes for Grade 10 Computers will be very useful for upcoming class tests and examinations and help you to score good marks

Web Scripting Using JavaScript Notes Class 10 Computers

Variables & Operators

JavaScript Data Types:
One of the most fundamental characteristics of a programming language is the set of data types it supports. These are the type of values that can be represented and manipulated in a programming language.
JavaScript allows you to work with three primitive data types:

• Numbers eg. 123, 120.50 etc.
• Strings of text e.g. "This text string" etc.
• Boolean e.g. true or false.
Java does not make a distinction between integer values and floating-point values.
JavaScript Variables:

Variable is the stored memory location that can hold a value in it. Variables are declared with the var keyword. Storing a value in a variable is called variable initialization.

Class 10 Computer Science Web Scripting Using JavaScript Notes
JavaScript Variable Scope:

The scope of a variable is the region of your program in which it is defined. JavaScript variable will have only two scopes.
• Global Variables: A global variable has global scope which means it is defined everywhere in your JavaScript code.
• Local Variables: A local variable will be visible only within a function where it is defined. Function parameters are always local to that function.
Class 10 Computer Science Web Scripting Using JavaScript Notes1
Class-10-Computer-Science-Web-Scripting-Using-JavaScript-Notes-unlocked 1
JavaScript Variable Names:
While naming your variables in JavaScript keep following rules in mind.
• You should not use any of the JavaScript reserved keyword as variable name.
• JavaScript variable names should not start with a numeral (0-9). They must begin with a letter or the underscore character.
• JavaScript variable names are case sensitive.
JavaScript Reserved Words:
The following are reserved words in JavaScript. They cannot be used as JavaScript variables,functions, methods, loop labels, or any object names.
Class-10-Computer-Science-Web-Scripting-Using-JavaScript-Notes-unlocked 2
Types of Operators: logical, arithmetic, relational
Operators: An Operator is a symbol that performs an operation. JavaScript language supports following type of operators.
• Arithmetic Operators
• Comparision Operators
• Logical (or Relational) Operators
• Assignment Operators
• Conditional (or ternary) Operators
The Arithmetic Operators:
Assume variable A holds 10 and variable B holds 20 then:
 Class-10-Computer-Science-Web-Scripting-Using-JavaScript-Notes-unlocked 3
Class-10-Computer-Science-Web-Scripting-Using-JavaScript-Notes-unlocked 4

Books recommended by teachers

More Study Material