Hey, guys!
I found javascript is not so easy to master. And I want to dive into it. I think learning by using is a good way. Since javascript is different from other C-style language, what kind of project is good for learning?
Thanks.
Hey, guys!
I found javascript is not so easy to master. And I want to dive into it. I think learning by using is a good way. Since javascript is different from other C-style language, what kind of project is good for learning?
Thanks.
The first project I'd do is get JsUnit working and figure out how I'm going to run the tests I write for the rest of the project on a regular basis (as in, simulated or real continuous integration).
You can take up any project that involves an interactive UI, then build it as a web page.
It will give you a lot to learn about js, from syntax to event handling.
E.g: a calculator
First, you should get familiar with JS, and start with some tutorial. You will get the idea in time.
Start here: http://www.w3schools.com/js/default.asp
Since you didn't post your age:
Playing around with Canvas might be a good start. The way I learned AS2 [which has similar functions and ECMAScript-style syntax, like JavaScript] was by creating a "Canvas"(MovieClip) and playing around with lineTo and moveTo.
With that, you could write simple games like Pong [my first AS2 game] with a simple AI...
Embarking on this project would cover:
Pong is a great first project, because you can customize it all that you want. When I wrote my version, I made it so by holding Enter, you could place a block in the middle of the screen, that the ball would bounce off of. The possibilities are basically endless =/
If you're interested in more "classic" web development [non-RIA things]
You could go for a simple lights-out game, which would take around 30 minutes to write.