Coder100Change your index.js to:
require("./server")
and it will work!3 years ago
RYANTADIPARTHIMake a http server or, if you want, you can also host it on heroku.com.3 years ago
RayhanADevHello @CoolCoderz133
You want to move all your information in server.js to index.js, probably below the http server. That should make it work! Need any help feel free to ping me. Cheers!
~ Ray <33 years ago
Hi, I Was Wondering If One Of You Pro Coders Out There Could Help Me A Bit And Maybe Find A Way For My Bot To Keep Running Even If I Sont Have REPL.IT
Node.js
Coder100Add this to the end of your code:
require("http").createServer((_, res) => res.end("Alive")).listen(8080)
And it will stay online for one hour!
To make it do it forever, copy the new website URL (that's ..repl.co) and put it into https://ping.matdoes.dev3 years ago
To-Do List PS3 Hub
function addItem() {
var newItem = document.createElement("div");
newItem.innerHTML = docume
Coder100Right here:
image
That is not valid JS. Change your code to:
function addItem() {
var newItem = document.createElement("div");
newItem.innerHTML = document.getElementById("box").value;
newItem.onclick = removeItem;
document.getElementById("list").appendChild(newItem);
saveList();
}
function removeItem() {
document.getElementById("list").removeChild(this);
saveList();
}
fu3 years ago
Coder100Hey, instead of copying and pasting the code, please send the repl!3 years ago