A few years ago I set out to teach myself JavaScript by reading programming books. It was such a struggle that I decided I must have lost some learning ability over the years. Then it hit me... I wasn't a bad learner. The books were bad teachers! I fought my way through a dozen books, and by brute effort, learned JavaScript. But I had to design exercises for myself. Without practice, I couldn't retain anything. JavaScript, I learned, isn't that hard. The books make it hard. So I wrote a book that makes JavaScript easy. And, since exercises are the only way to make the knowledge stick, I programmed 1,750 of them for you. I'm a former lecturer in the Communications School of Boston University. I hold an A.B. from Harvard. My professional focus is on using technology to reduce the effort and tedium of learning, primarily through interactivity. I'm developing the "A Smarter Way to Learn" series on programming, a collection of instructional books paired with online interactive exercises. I run the website . Along with my wife Judy and our two politically-active cats, I live in Taos, NM, where I cook under the ghostly supervision of Marcella Hazan, read extensively, play showboat frisbee once a week, and long for more episodes of "Breaking Bad."
......(更多)
A few years ago I set out to teach myself JavaScript by reading programming books. It was such a struggle that I decided I must have lost some learning ability over the years. Then it hit me... I wasn't a bad learner. The books were bad teachers! I fought my way through a dozen books, and by brute effort, learned JavaScript. But I had to design exercises for myself. Without practice, I couldn't retain anything.
JavaScript, I learned, isn't that hard. The books make it hard. So I wrote a book that makes JavaScript easy. And, since exercises are the only way to make the knowledge stick, I programmed 1,750 of them for you.
I'm a former lecturer in the Communications School of Boston University. I hold an A.B. from Harvard. My professional focus is on using technology to reduce the effort and tedium of learning, primarily through interactivity. I'm developing the "A Smarter Way to Learn" series on programming, a collection of instructional books paired with online interactive exercises. I run the website .
Along with my wife Judy and our two politically-active cats, I live in Taos, NM, where I cook under the ghostly supervision of Marcella Hazan, read extensively, play showboat frisbee once a week, and long for more episodes of "Breaking Bad."
......(更多)
Display alert messages to the user
Gather information through prompts
Manipulate variables
Build statements
Do math
Use operators
Concatenate text
Run routines based on conditions
Compare values
Work with arrays
Run automated routines
Display custom elements on the webpage
Generate random numbers
Manipulate decimals
Round numbers
Create loops
Use functions
Find the current date and time
Measure time intervals
Create a timer
Respond to the user's actions
Swap images
Control colors on the webpage
Change any element on the webpage
Improvise new HTML markup on the fly
Use the webpage DOM structure
Insert comments
Situate scripts effectively
Create and change objects
Automate object creation
Control the browser's actions
......(更多)
......(更多)