EECS 1012 Lecture Notes - Lecture 6: Concatenation, Empty String, Global Variable

114 views2 pages
elden1340 and 38522 others unlocked
EECS 1012 Full Course Notes
10
EECS 1012 Full Course Notes
Verified Note
10 documents

Document Summary

Local vs global variables: scope of local variable is within the function. Scope of global variable is entire document. Global variables load as soon as it is loaded before everything else. Special values null : set to nothing you can ask if the variable has a value r if it has a value of null. Sometimes a webpage returns null the object lets you know that the element does not exist. Undefined: ask if the variable is defined or if not. You can concatenate a number to a string. Add an empty string parsint() or parsfloat()-- string to float. You can concatenate a string to a number. Value comes back as a string string concatenation. Call it again and pass the values to parsint() Searches the string and returns what looks like an integer. You can create functions in one file and call in a different one. Style object p. style. backgroundcolour= blue p. style: accesses style object.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents

Related Questions