Don't see logs on the server side when using console.log
This is the first time in my life I touch js or node so please bear with me. I am trying to make my app output logs on the server side. getUser.onclick = function () { console.log('Server running at http://127.0.0.1:1337/'); var req = new XMLHttpRequest(); req.onreadystatechange = function () { if (req.readyState === 4 && req.status === 200) { var user = JSON.parse(req.responseText); results.innerText += user.firstName + ' ' + user.lastName + '\n'; } }; req.open("GET", "/user"); req.send(); Now according to this: Node js console.log is not showing anything this should work. However, this sheds
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.