Skip to content

Create a css file using node js [closed]

Closed. This question needs debugging details. It is not currently accepting answers. Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question. Closed 1 year ago. Improve this question I am b…

Read more / less code but it doesn’t change properly

After doing some research I came to this code shown below. If you try the code yourself you notice the variable is used for every div with a button and text (the whole site). I tried several other codes but I like the slideDown/Up feature. If somebody knows how I can rearrange this code to make it work for ev…

NodeJS how to create a bash like input

I want to create a nodejs cli app, where there is a shell. I have tried doing this so far: But it only works once, how do I make it work continuously? Like so: Answer That is happening because you are only calling the question function once. To ask for next input you need to call it again inside the

Using fetch to read and write files

In my code i’ve a file called “orca.txt” it is just a number writen in this. it looks like: 2300 I use fetch to read this number, i get it with: fetch(‘orca.txt’) .then(response => response.text()) .then(textString => { contador=textString; }); It works very well, but then …