variables

What is variables ?

  • Profile picture of Mcs
  • by Mcs June 30, 2025

In JavaScript, variables are named containers used to store data values. They act as placeholders for information that can be accessed and manipulated throughout a program. 

How to Declare a Variable

JavaScript uses 3 keywords to declare variables:

type of variables

Comments

Add new comment

Restricted HTML

  • Allowed HTML tags: <br> <p> <h2 id> <h3 id> <h4 id> <h5 id> <h6 id> <cite> <dl> <dt> <dd> <a hreflang href> <blockquote cite> <ul type> <ol type start> <strong> <em> <code> <li>
  • Lines and paragraphs break automatically.
  • Web page addresses and email addresses turn into links automatically.