-
Notifications
You must be signed in to change notification settings - Fork 294
Proper way to do inheritance in nodejs #16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
One way to be able to use |
thanks a lot, I will try to learn how to use browserify! |
I'd suggest taking a look at the implementation of JavaScript uses what we call "prototypical inheritance", which is different than some other languages. You can probably find a lot of info by googling something like that. :) |
@Fishrock123 thanks a lot, your suggestion is very helpful :) |
Closing for now, feel free to reopen. |
Hi, all. I am new to nodejs.
I don't know if this is a right place to ask such simple question.
I should write the code that could run on browser side and server side.
I found out that I can use
require('util').inherits
to do inheritance thing in nodejs.But if I want to let same code run on both client and server side,
how can I do for that? Thanks a lot !
The text was updated successfully, but these errors were encountered: