Похожие чаты

Hi everyone. I need help working with vanilla js on

chrome. I
credentials.js
module.exports{
api_key = "1234",
consumer_secret = "xyz"
}

script.js
var credentials = require("./credentials");
console.log(credentials.api_key);
console.log(credentials.consumer_secret);

This gives an error
object api_key not found
. How do I fix this?

1 ответов

4 просмотра

you missed an equal sign and Common modules only work in Node environment iirc

Похожие вопросы

Обсуждают сегодня

Карта сайта