The solution is just as simple. The key is understanding the scope of the problem and you my friend have just done that. We can simply log out/print the result by coding 'console.log(count)' We also need to update the 'count' variable or else we'll keep printing '1' 200 times.
2 Comments
Sort: