Can you suggest some good Javascript assignments/homework to C programmers, who are not familiar with Javascript?
They are strong in C, hence basic Javascript.
I need few JS related assignments which I can assign to them, to help them understand Web-Dev and Prototype concepts.
I'm not looking for the tutorials which they need to refer.
I think this question is little different from the question What’s the best way to introduce non-majors to HTML / programming?
JavaScript Assignments
JavaScript homeworks
One of the biggest differences between JavaScript and C is how scope is defined. In C closures are a convenience that are of little importance. In JavaScript closures are incredibly powerful.
My suggestion to use is to attempt to write a program in JavaScript using what you know of C. Make the program as object oriented as absolutely possible. Always define your variables at the top of a function using a single var command. You will see the differences pretty quickly. It is important that always define your variables for them to have scope otherwise they are accidental globals.
Try to write an application that takes information from a page and sorts it alphabetically and returns a response that is configurable based upon arguments supplied to the root function.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With