Running nodejs reports fewer errors ")"

clipboard.png

var http = require("http")
var server = http.createServer(function(req,res){
    console.log("jirengu")
    res.setHeader("Content-Type","text/plain";"charset=gbk")
    res.write("<h1>jirengu</h1>")
    res.end()
})
server.listen(9000)

says I"m missing parentheses. I can"t tell.

Feb.26,2021

here
clipboard.png


 res.setHeader("Content-Type","text/plain;charset=gbk")

res.setHeader ("Content-Type", "text/plain"; "charset=gbk")
commas are written in semicolons. Or write it in a string.
"text/plain";

there is a in the middle


you may need a code detection tool, such as eslint .

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-119fad8-88f1.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-119fad8-88f1.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?