|
|
#1 |
|
Platinum Member
![]() |
Im trying (again) to learn my way through JavaScript. The first time I tried I was quickly overwhelmed because I had barely learned HTML && CSS at that point. Now I feel more comfortable and want to give it another swing. In the downtime between then and now I have taken an introductory programming class at school that focused on Java programming. I picked up on it very quickly because of how strict the data types and the structure of java code is.
I know JavaScript and java are completely different but the flexibility of JavaScript is really bothering me and making it so hard to learn. So what's the best or most common way to structure JavaScript code? How can I set up classes and actionlisteners similar to Java? Is it even possible? |
|
|
|
|
|
#2 |
|
Diamond Member
![]() Join Date: Feb 2011
Location: Newcastle, Australia
Posts: 1,819
|
|
|
|
|
|
|
#3 |
|
Diamond Member
![]() |
I have the same problem. The only way I've been able to actually work with JS at the level I need to was to look at it as "find this, do that". From there, it was really just syntax.
__________________
Ronald Roe Web Designer/Front-end Developer Useful: CSS-only Dropdown Menu | jQuery Help | What Should I Learn? | Box Model | Media Queries |
|
|
|
|
|
#4 | |
|
Diamond Member
![]() Join Date: May 2012
Location: Blackpool
Posts: 1,280
|
Quote:
and class constructors are similar to C++ constructors
__________________
When the mind is enlightened, the spirit is free and the body matters not. |
|
|
|
|
|
|
#5 |
|
Gold Member
![]() Join Date: Mar 2010
Location: Auckland, New Zealand
Posts: 456
|
Look into jquery. Once you grasp it you'll find it really useful and save a lot of common javascript tasks, namely object selection.
Last edited by leroy30; 06-15-2012 at 11:39 PM. |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|