• ¿Documento equivocado? Cámbialo gratis
  • Escrito por estudiantes que aprobaron
  • Inmediatamente disponible después del pago
  • Leer en línea o como PDF
Vender
¿Dónde estudias?
Tu idioma
Document preview thumbnail
Vista previa 1 fuera de 4 páginas
Examen

JavaScript Basics AND A Beginners Guide Book - Part 1 ALL SOLUTION 2024/25 EDITION GUARANTEED GRADE A+

Document preview thumbnail
Vista previa 1 fuera de 4 páginas

JavaScript Basics AND A Beginners Guide Book - Part 1 ALL SOLUTION 2024/25 EDITION GUARANTEED GRADE A+ script/script tags that begin and end Javascript code within an HTML document alert() allows the program to display a special dialog box that will notify the user that an expected event has occurred var a name assigned to a literal value or object () inserts characters/text into the standard HTML text stream s= allows user to see message in the browser status line array simple collection of similar objects that can be accessed by a variable name/index cycling banner several graphics displayed one after another with a pause between images hyperlink rollover triggered when the user moves the mouse over a hyperlink image rollover change the appearance of an image whenever the user moves the mouse pointer over and off of it onMouseOver event generated whenever the user moves the mouse over a particular object onMouseOut event generated whenever the user moves the mouse off of a particular object doSubmit() function that calls up an activity when visitor submits form validateText() function that returns a value from a text box; either true or false setTimeout() sets a time frame for JavaScript functions to operate onLoad() event triggered when the Web browser has finished loading the body of the HTML Web page. doClear() function that erases any existing form data validateRadio() function that returns a value from a radio button; either true or false prevImage() changes image that is currently displayed on the screen to the former image external javascript javascript code written separately in order to be brought into a document nextImage() changes image that is currently displayed on the screen to the next image function segment of javascript code that can be invoked or called, written by a programmer and may contain any number of javascript statements event located within standard HTML tags; causes something to happen Mm() function that generates random numbers with decimals Variable names must begin with ____ or ______ or ______ A letter or underscore _ or dollar sign $ Write to the screen hello world in JavaScript script ("Hello World "); /script How can you explicitly identify JavaScript as your scripting language in your HTML internally script type="text/javascript" JavaScript code here.. /script How can you call external JavaScript code in your HTML? script type="text/javascript" SRC=" JavaScript code here.. /script Write code to defer loading external script until page fully loaded script type="text/javascript " src="" defer/script Write code to allow a page to continue to load without waiting for the script to load script type="text/javascript " src="" async/script Write code for webpage viewers browsing without JavaScript script type="text/javascript " src="" /script JavaScript code here /script noscriptno script code here/noscript You can place script between ____ tags and______tags only You can place script between head tags and bodytags Use single var statement to declare multiple variables var one, two, three; Use single var standby to declare and initialise multiple var var one=1, two = 2, three =3; var volatile; will give a compile error. True or false True: volatile is a reserved JavaScript keyword var continues =3; will give a compile error. True or false False: continues is a valid variable name. However, continue is a keyword in JavaScript var constant; will not give a compile error True: it is a valid variable name. const is a keyword and not a valid variable name var integer, double; will give a compile error. True or False False: integer and double are valid variable names. However int is a keyword and not a valid variable name yield, with, in, let, debugger are valid variable names. True or False False: all are keywords in JavaScript Javascript forces you to declare the type of a variable eg String one ="hello"; Double Two=10.0; True or False False: JavaScript does NOT force you to declare the type of variable eg var one="hello"; var two=10.0; JavaScript does NOT require numbers to be declared as integers, floating point etc. True or False True The following will give compile error: var one='hello'; var two="world "; True or false False: Both single ' ' and double quotes " " pairs can be used for string values. The following will give compile error: var one='hello"; var two="world "; True or false True: matching pairs must be the same i.e. ' ' and/or " " Declare a variable pets that contains "dog cat bird" and has a tab between each word var pets="dogtcattbird"; Declare a variable path that contains "c:homemabsc" and prints the same to the screen var path="c:homemabsc"; will print "c:homemabsrc to screen Display "Hello World" in a paragraph on page with strong emphasis on Hello pstrongHello/strongWorld/p The following JavaScript code will print: Hamlet says, "to be, or not to be". ("Hamlet says, " to be, or not to be" "); True or false False: extra quotes at end will cause error. Placing shows fur under quotes to become part of the string ("Hamlet says, " to be, or not to be" "); ( "he says: 'Hello' ."); will give compile error. True or false False: will print: he says:'Hello'. Using single quotes inside double quotes is OK and visa versa Declare a variable that is initialised to true. eg var open=... var open=true;

Vista previa del contenido

JavaScript Basics AND A Beginners
Guide Book - Part 1 ALL SOLUTION
2024/25 EDITION GUARANTEED GRADE
A+
<script></script>
tags that begin and end Javascript code within an HTML document
alert()
allows the program to display a special dialog box that will notify
the user that an expected event has occurred
var
a name assigned to a literal value or object
document.write()
inserts characters/text into the standard HTML text stream
window.status=
allows user to see message in the browser status line
array
simple collection of similar objects that can be accessed by a
variable name/index
cycling banner
several graphics displayed one after another with a pause between
images
hyperlink rollover
triggered when the user moves the mouse over a hyperlink
image rollover
change the appearance of an image whenever the user moves the mouse
pointer over and off of it
onMouseOver
event generated whenever the user moves the mouse over a particular
object
onMouseOut
event generated whenever the user moves the mouse off of a particular
object
doSubmit()
function that calls up an activity when visitor submits form
validateText()
function that returns a value from a text box; either true or false
setTimeout()
sets a time frame for JavaScript functions to operate
onLoad()

Información del documento

Subido en
16 de septiembre de 2024
Número de páginas
4
Escrito en
2024/2025
Tipo
Examen
Contiene
Preguntas y respuestas
$12.99

¿Documento equivocado? Cámbialo gratis Dentro de los 14 días posteriores a la compra y antes de descargarlo, puedes elegir otro documento. Puedes gastar el importe de nuevo.
Escrito por estudiantes que aprobaron
Inmediatamente disponible después del pago
Leer en línea o como PDF

Seller avatar
Los indicadores de reputación están sujetos a la cantidad de artículos vendidos por una tarifa y las reseñas que ha recibido por esos documentos. Hay tres niveles: Bronce, Plata y Oro. Cuanto mayor reputación, más podrás confiar en la calidad del trabajo del vendedor.
Allan100
3.5
(92)
Vendido
649
Seguidores
606
Artículos
3196
Última venta
2 meses hace



Por qué los estudiantes eligen Stuvia

Creado por compañeros estudiantes, verificado por reseñas

Calidad en la que puedes confiar: escrito por estudiantes que aprobaron y evaluado por otros que han usado estos resúmenes.

¿No estás satisfecho? Elige otro documento

¡No te preocupes! Puedes elegir directamente otro documento que se ajuste mejor a lo que buscas.

Paga como quieras, empieza a estudiar al instante

Sin suscripción, sin compromisos. Paga como estés acostumbrado con tarjeta de crédito y descarga tu documento PDF inmediatamente.

Student with book image

“Comprado, descargado y aprobado. Así de fácil puede ser.”

Alisha Student

Preguntas frecuentes