The OpenCV tutorial example do not have keyword to declare variable

When I read doc tutorial_js_nodejs:

there is a minimal example:

// Define a global variable 'Module' with a method 'onRuntimeInitialized':
Module = {
  onRuntimeInitialized() {
    // this is our application:
// Load 'opencv.js' assigning the value to the global variable 'cv'
cv = require('./opencv.js')

what’s the language it use?

if is javascript, there should have var/const for declaring the variables.

no it shouldn’t. the comment explains:

global variable.

that’s basic javascript. since you needed to ask, I would suggest that you learn more about it.

not even 40 minutes after posting your question here, you asked for attention to it on IRC. this forum is free of cost and run by volunteers. adjust your expectations… you are probably being paid to use OpenCV, so I understand the pressure on you to deliver answers you don’t have.

1 Like

Thank you for your answer, I am ashamed of my way to get reply quickly.