Skip to content

Instantly share code, notes, and snippets.

@chamix
Last active August 29, 2015 14:01
Show Gist options
  • Save chamix/74953371960b152c8d06 to your computer and use it in GitHub Desktop.
Save chamix/74953371960b152c8d06 to your computer and use it in GitHub Desktop.
Node modules 1 chamix blog post
var miJuego= require('./juego');
console.log('juego id: ' + miJuego.juego.id +
'Jugadores: ' + miJuego.juego.jugadores[0] +
', ' + miJuego.juego.jugadores[1]);
exports.juego = {
id: 1,
jugadores :['yo','mi_oponente']
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment