Posts by Mauricio • 76 points
3 posts
-
1
votes1
answer322
viewsA: Node Fs.js running in HTML
There is a difference in executing javascript in Nodejs and Browser, in Node the platform maps the operating system libs already in the Browser maps those of the Browser itself, so it will not be…
-
4
votes2
answers930
viewsA: Random number between 0 and 8, except 5, in Javascript using Math.Random
In this role will never give five: function numberRandom() { let num = 5 while (num === 5) { num = Math.floor(Math.random() * 8) } return num }…
-
1
votes1
answer493
viewsA: How to make the backend communicate with the socket.io server
In order for you to connect you need a client for the socket.io (https://www.npmjs.com/package/socket.io-client) this is a good option, in it you need to instantiate an object and point to the…