Skip to content

Tag: node.js

.find() returns undefined using JSON data, using node.js

I’m creating a server using node and want to output JSON data, when a specific ID is clicked. I’ve set up a dynamic URL which will pull the data from the clicked video using params and then compare it with the one from the JSON data, using .find() When I log out the “req.params.id” I g…

Javascript serial queue using async?

I have the following code: When I run the code above I get this: To do that I referenced this link: https://caolan.github.io/async/v3/docs.html#queue Could someone help me understand why the “serial” nature of the queue is not respected here? I set concurrency to 1 when I created serialQueue but, …

unable to use babel to run file

I’m trying to get more familiar with modern javascript and am following a tutorial. Early setup includes running a file from another file. I have a server.js file with a simple ‘import ‘./config’; command. As a test that repo setup is correct, I should be able to run ‘babel serve…