Bugsounet Coding

    • Register
    • Login
    • Search
    This Forum is now reserved to registred users!

    Global variable ?

    General Discussion
    2
    4
    35
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A
      adel51 last edited by

      Hi,
      can we define global variables in a module?
      tx

      1 Reply Last reply Reply Quote 0
      • bugsounet
        bugsounet Main Coder last edited by

        a variable is defined in a module with var and associated with a value

        value can be a number, text, object, array, function, …

        sample: var myVar = "my value"

        1 Reply Last reply Reply Quote 0
        • A
          adel51 last edited by

          J avais trouvé dans la doc. Il faut la définir au niveau du start().
          Merci

          1 Reply Last reply Reply Quote 0
          • A
            adel51 last edited by

            Par contre, le langage utilisé dans le core et celui du node helper sont différents ( nodeJS et ??) ?

            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            Powered by NodeBB | @bugsounet ©2022