-2
Good afternoon, I would like to know how to pull the function of a mini-program to a program in JS, check Note.js containing the function verificaNota, I would like to know how to pull this function in the file calculatNota.js
When I last import it generates the following error
SyntaxError: Unexpected token {
The archive
verificaNota.js
is exposing the functionverificaNota
through theexport
?– Woss
No, how do I expose ?
– Alecksander Costa
See the link from the previous comment.
– Woss
@Andersoncarloswoss followed the steps but is now generating the error attached in the image
– Alecksander Costa
It seems that on the Node you will use the
require
.– Woss
@Andersoncarloswoss I used require and it worked obg friend, abs
– Alecksander Costa