Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Summary

Summary - CGS3066: Web Programming and Design Summer 2014

Rating
-
Sold
-
Pages
39
Uploaded on
08-07-2024
Written in
2023/2024

 JavaScript is a lightweight, interpreted programming language  Designed for creating network-centric applications  Complementary to and integrated with Java  Complementary to and integrated with HTML  Open and cross-platform JavaScript Syntax: A JavaScript consists of JavaScript statements that are placed within the script... /script HTML tags in a web page. You can place the script tag containing your JavaScript anywhere within you web page but it is preferred way to keep it within the head tags. The script tag alert the browser program to begin interpreting all the text between these tags as a script. So simple syntax of your JavaScript will be as follows script ... JavaScript code /script The script tag takes two important attributes:  language: This attribute specifies what scripting language you are using. Typically, its value will be javascript. Although recent versions of HTML (and XHTML, its successor) have phased out the use of this attribute.  type: This attribute is what is now recommended to indicate the scripting language in use and its value should be set to "text/javascript". So your JavaScript segment will look like: script language="javascript" type="text/javascript" JavaScript code /script Your First JavaScript Script: Let us write our class example to print out "Hello World". Tutorials Point, Simply Easy Learning 2 | P a g e html body script language="javascript" type="text/javascript" !-- ("Hello World!") //-- /script /body /html Above code will display following result: Hello World! Whitespace and Line Breaks: JavaScript ignores spaces, tabs, and newlines that appear in JavaScript programs. Because you can use spaces, tabs, and newlines freely in your program so you are free to format and indent your programs in a neat and consistent way that makes the code easy to read and understand. Semicolons are Optional: Simple statements in JavaScript are generally followed by a semicolon character, just as they are in C, C++, and Java. JavaScript, however, allows you to omit this semicolon if your statements are each placed on a separate line. For example, the following code could be written without semicolons script language="javascript" type="text/javascript" !-- var1 = 10 var2 = 20 //-- /script But when formatted in a single line as follows, the semicolons are

Show more Read less
Institution
CGS3066: Web Programming And Design Summer 2014
Course
CGS3066: Web Programming and Design Summer 2014











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

Written for

Institution
CGS3066: Web Programming and Design Summer 2014
Course
CGS3066: Web Programming and Design Summer 2014

Document information

Uploaded on
July 8, 2024
Number of pages
39
Written in
2023/2024
Type
SUMMARY

Subjects

$8.49
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Get to know the seller
Seller avatar
leonardkinyua

Get to know the seller

Seller avatar
leonardkinyua Abraham Lincoln University, School Of Law
Follow You need to be logged in order to follow users or courses
Sold
-
Member since
2 year
Number of followers
0
Documents
323
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

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions