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
2
Uploaded on
08-07-2024
Written in
2023/2024

7. How do you write "Hello World" in an alert box? A. alertBox("Hello World"); B. msgBox("Hello World"); C. msg("Hello World"); D. alert("Hello World"); 8. How do you create a function in JavaScript? A. function:myFunction() B. function myFunction() C.function = myFunction() 9.How does a FOR loop start? A. for (i = 0; i = 5; i++) B. for (i = 5; i++) C. for (i = 0; i = 5) D. for i = 1 to 5 10. How can you add a comment in a JavaScript? A. //This is a comment B. 'This is a comment C. !--This is a comment-- 11. JavaScript is the same as Java. A. Flase B. True 12. What JavaScript keyword declares a variable? A. var B. if C. for D. create 13. Write a function called insertText that inserts the string “Welcome to my site!” into an element with Id “para1”. 4 14. Write a function called changeBGColor that changes the background color of all elements which has Class name “classColor”. 4 15. Consider the following code segment- form Enter User Id: input type =”text” name=”userid” id=”userid” input type=”button” value=”Check User ID” onclick=”return chekID();” /form Write JavaScript code for chekcID() function, which checks the value entered userid field and return true if it contains only alphabet(A-Za-Z)/number(0-9)/_(underscore) otherwise return false. You may consider defining a regular expression(pattern) while implementing the function. 10

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
2
Written in
2023/2024
Type
SUMMARY

Subjects

$9.99
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