Forum Discussion

Andrew35's avatar
Andrew35
Community Member
9 months ago
Solved

Javascript for sending an email

Hi there Hope someone can help tell me what's wrong with my JS for sending an email with Text Entry data. For context I want the email to go to a specific address and it will contain the text entri...
  • JoeFrancis's avatar
    9 months ago

    Both let and var create new variables in JavaScript. The difference between the two is their scope. 

    • A variable declared by let is only available inside of the block in which it is defined
    • A variable declared by var is available throughout the function in which it is defined, or globally if it's defined outside of a function