-3
if possible help me with my doubt, I am more lost than blind in shooting,
look I would like to do a search that the user type himself via prompt and the same was adding, at the end I would like to save in file for example in text so that I can have this data saved and not get lost, since what this variable will be lost in future interactions, such as opening and closing the program.
follows below the code, this very basic, I will still put a command DO WHILE.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<script>
var otima=0
var boa=0
var pessima=0
var regular=0
var op=prompt("Escolha opção:")
switch(op){
case '1': otima=otima+1
break
case '2': boa=boa+1
break
case '3': pessima=pessima+1
break
case '4': resular+regular+1
break
}
</script>
</head>
<body>
</body>
</htm>
But you will do it in the browser or on
Node.js
?– Sorack
Diego, could you clarify the context of how this will be used? Will integrate with any application that already exists?
– Pedro Ramos
Good afternoon, it will not be used only in the same browser, in short, via prompt enter the data it, sum and the purpose that the data can be file in a doc.txt.
– Diego otto