100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Class notes

Class notes java programming language

Rating
-
Sold
-
Pages
6
Uploaded on
24-02-2022
Written in
2021/2022

well accurate notes of java

Institution
Course









Whoops! We can’t load your doc right now. Try again or contact support.

Written for

Course

Document information

Uploaded on
February 24, 2022
Number of pages
6
Written in
2021/2022
Type
Class notes
Professor(s)
E balagurusami
Contains
All classes

Subjects

Content preview

Comments in javascript
 Any text between a // and the end of a line is treated as a comment and is
Ignored by javascript
 Any text between the character /* and */istreated as a comment .this may
 Span multiple lines.
 Javascript also recognize the HTML comment opening sequence<!—
Javascript treats this as a single-line comment,just as it does the // comment.
 The HTML comment closing sequence --> is not recoganized by javascript so it
Should be written as //-->.

EXAMPLE

The following example shows how to use comment in javascript.

<script language=”javascript” type=”text/javascript”>
<!—
// this a comment.it is similar to comment in c++
/*

*this is a multiline comment in javascript

*it is very similar to comment in c programming

*/

//-->

</script>




Javascript variables
like many other programmning languages,javascript has
variables.variables can be thought of as named containers.you can
place data into these containers and then refer to the data simply by
naming the container.
Before you use a variable in javascript program ,you must declare it.
Variables are declared with the var keyword as follows.

, <script type=”text/javascript”>
Var money;
Var name;
</script>



Alert() method

The alert()method displays an alert box with a specified message and
an ok button.an alert box is offen used if you want to make sure
information comes through to the user.
Alert(“hello! I am an alert box!”);




OPERATORS
arithmetic operators

 Comparison operators

 Logical operators

 Assignment operators


Arithmetic operators
Javascript supports the following arithmetic operators-
+(Addition)
-(Substraction)
*(multiplication)
/(division)
%(modulus)
++(increment)
$7.49
Get access to the full document:

100% satisfaction guarantee
Immediately available after payment
Both online and in PDF
No strings attached

Get to know the seller
Seller avatar
shahanat

Get to know the seller

Seller avatar
shahanat india
Follow You need to be logged in order to follow users or courses
Sold
0
Member since
3 year
Number of followers
0
Documents
16
Last sold
-

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Frequently asked questions