admin管理员组文章数量:1301538
I'm currently learning JavaScript from the Lynda video series. It seems to be going well so far.
I was wondering what sort of introductory projects you would remend for someone new to programming, using the JavaScript language. Perhaps you may suggest that I think of something of interest and shoot to get it done. I really don't know yet, anything I'd eventually like to build seems far from reach, ie. element animation, etc.
I have experience with jQuery, but for this purpose I wouldn't use a framework.
Thank you.
I'm currently learning JavaScript from the Lynda. video series. It seems to be going well so far.
I was wondering what sort of introductory projects you would remend for someone new to programming, using the JavaScript language. Perhaps you may suggest that I think of something of interest and shoot to get it done. I really don't know yet, anything I'd eventually like to build seems far from reach, ie. element animation, etc.
I have experience with jQuery, but for this purpose I wouldn't use a framework.
Thank you.
Share asked Mar 11, 2011 at 19:03 Jonathan MussoJonathan Musso 1,3743 gold badges22 silver badges48 bronze badges 2- Sudoku? (using a grid of text-boxes) – Šime Vidas Commented Mar 11, 2011 at 19:28
- There are some hundred javascript lessons on lynda. What was your last? Do you know Towers of Hanoi? – Torsten Becker Commented Mar 11, 2011 at 20:26
3 Answers
Reset to default 4A good beginning is:
The Guess The Number Game
Here is good link of beginning programs (in Python)
http://www.scribd./doc/50490971/11/Guess-the-Number-s-Source-Code
Have the program pick a random number, you try to guess it. The program tells you if you are "high", "low", or "correct". At the end of the game, it tells you how many tries it took you to guess.
Add ons:
- variable "you won!" messages depending on how long it took you.
- include "very high", "very low", etc. to your guess responses
- allow the game to be replayed
For ease of use, I would probably use a library like JQuery to help with the UI for the game. Ok, so the UI is trivial, but it is alot easier to jazz up later on using JQuery.
These two go well together:
- Retrieve data from an XML file from your server using
XMLHttpRequest
- Construct a
<table>
(of tabular data, of course) using only loops andDOM
functions, no HTML.
Also being a somewhat beginner, one of the first projects I made, was a pixel maker.
For my basic version, I used jquery, but I would say making it in pure javascript could be a nice challenge! It also gives a basic understanding of how illustration programs like photoshop, krita are built.
Here is a very high level example: http://pixelartmaker./
本文标签: scriptingProjects for the JavaScript beginnerStack Overflow
版权声明:本文标题:scripting - Projects for the JavaScript beginner - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741674707a2391813.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论