A Balanced Introduction to Computer ScienceThis carefully written, balanced book teaches the most important concepts in computing and computer science while providing enough programming depth to enable understanding about how people work with computers. Taking advantage of today's interest in and familiarity with the Web, the book contains experimental problems using Web-based tools; enabling readers to learn the fundamentals of programming by developing their own interactive Web pages. Beginning with an introduction, overview, and the basics of computers, the book proceeds with comprehensive chapters on HTML and Web pages, the Internet, JavaScript and Web page creation, the history of computers, abstraction and user-defined functions, algorithms and programming languages, event-driven programming, conditional execution, data representation, conditional repetition, JavaScript strings, and transistors and integrated circuits. This book can serve as an excellent reference resource for those entering the computer job market: programmers, Web site and Web page designers, and technical support staff. |
From inside the book
Results 1-3 of 13
Page 209
If the test fails ( evaluates to false ) and there is an else case , then the code
inside the curly braces following the else is executed . The following relational
operators can be used to build simple Boolean expressions : == ( equal to ) , !
If the test fails ( evaluates to false ) and there is an else case , then the code
inside the curly braces following the else is executed . The following relational
operators can be used to build simple Boolean expressions : == ( equal to ) , !
Page 363
Greet ( " Dave " ) ; // Result : displays Hi Dave Strings Property Description
Examples ( assuming word = " Foo 2 " ; ) length word . length evaluates to 5
Methods Specifies the number of characters in the string . Description
Concatenation ...
Greet ( " Dave " ) ; // Result : displays Hi Dave Strings Property Description
Examples ( assuming word = " Foo 2 " ; ) length word . length evaluates to 5
Methods Specifies the number of characters in the string . Description
Concatenation ...
Page 364
toLowerCase ( ) evaluates to " foo 2 " Returns a copy of the string with all letters
made lowercase Returns the character stored at a particular index charAt 11
word.charAt ( 0 ) word.charAt ( 1 ) word.charAt ( 4 ) word.charAt ( 5 ) word.
substring ...
toLowerCase ( ) evaluates to " foo 2 " Returns a copy of the string with all letters
made lowercase Returns the character stored at a particular index charAt 11
word.charAt ( 0 ) word.charAt ( 1 ) word.charAt ( 4 ) word.charAt ( 5 ) word.
substring ...
What people are saying - Write a review
We haven't found any reviews in the usual places.
Contents
Computer Basics | 1 |
HTML and Web Pages | 19 |
JavaScript and Dynamic Web Pages | 58 |
Copyright | |
11 other sections not shown
Other editions - View all
Common terms and phrases
addition Address algorithm allow appear applied array assigned Back binary bits body browser button Chapter characters circuit clicks complex components computer science connected contains contents convert corresponding counter create define described desired dice display document doubles electrical elements enter errors evaluates example executed EXERCISE Explorer expression FALSE Favorites Figure function grade head Help initial input instructions integer Internet involved JavaScript language load loop machine main memory method Microsoft operator output particular pattern perform person problems produce prompt random registers represented result rolls script sequence simulator specified statement stored string switch tags task temperature text box transistors true unit variable View Web page window wire write