Proyecto test
Javierbj02
103 views
Welcome!
This Nodejs template lets you get started quickly with a simple working example using npm. If it is your first contribution then you should have a look at the Getting Started document.
The source codeeee is on GitHub, please feel free to come up with proposals to improve it.
Hands-on Demo
Luke, how many stars are there in these galaxies?
1
2
3
4
5
6
7
8
9
10
11
12
13
14
function countAllStars(galaxies) {
var totalStars = 0;
galaxies.forEach(function(stars) {
totalStars = stars; // fix me
}, this);
return totalStars;
}
// {
module.exports = {
countAllStars: countAllStars
};
// }
Check out the markdown file welcome.md
to see how this exercise is injected into the template.
Create your playground on Tech.io
This playground was created on Tech.io, our hands-on, knowledge-sharing platform for developers.