Skip to content

how to add user data javascript

I am having trouble being able to add user input data. I can get it working when I add in the data myself all the users show up in the console in the array. For people 1-3 I would like them to enter their name and favorite color but I can’t seem to be able to store it or at

nodejs import dynamic variable from another file

by using module.exports = var; and const var = require(“./file.js”); we can access a variable from another file but the imported variable is static and cannot change even if the original variable changes in the original file, how can I export an array that can be updated at any time and accessible…

function returning NaN in javascript

I am trying to write a function that calculates the average student age in a list of student objects, but when I run the code the function prints NaN as an output this is how i constructed the array ( i got the input from the user) i tried to calculate the total of student age (removing the divide operation)

How to create Polls on LinkedIn

I was able to successfully create regular Text, Image and Video Shares on LinkedIn using the Shares API. Now, I also need to create Polls on LinkedIn and I’ve searched so much around but can’t seem to find any documentations on how to do that using the Shares API. Does LinkedIn support creating Po…