What do you want to save?
Add Code snippet
New code examples
-
-
Javascript 2021-10-27 02:24:07
socket.io react
import React, { useState, useEffect } from "react"; import socketIOClient from "socket.io-client"; const ENDPOINT = "http://127.0.0.1:4001"; function App() { const [response, setResponse] = useState(""); useEf... Add solution -
-
Javascript 2021-10-20 06:34:05
call node js function from javascript
var io = require('socket.io').listen(80); // initiate socket.io server io.sockets.on('connection', function (socket) { socket.emit('news', { hello: 'world' }); // Send data to client // wait for the event raised by the client socket.on('my other e... Add solution -
-
Javascript 2021-10-13 15:25:09
node js interview questions interviewbit
What is Node.js? What is it used for? Q2. What is Event-driven programming? Q3. What is Event loop in Node.js work? And How does it work? Q4. What is REPL in Node.js? Q5. What is the purpose of module.exports in Node.js? Q6. What is the difference bet... Add solution -
Javascript 2021-10-12 18:21:07
javascript interview questions
What is Node.js? What is it used for? Q2. What is Event-driven programming? Q3. What is Event loop in Node.js work? And How does it work? Q4. What is REPL in Node.js? Q5. What is the purpose of module.exports in Node.js? Q6. What is the difference bet... Add solution
Best helpers
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5