App Logo

No.1 PSC Learning App

1M+ Downloads
What is the correct way to declare a variable in JavaScript ?

Adeclare product_name

Bvariable product_name

Cvar product_name

Dchar product_name

Answer:

C. var product_name

Read Explanation:


  • Variables are containers for storing information.
  • Creating a variable in JavaScript is called "declaring" a variable: var carName.
  • In JavaScript, variables are declared using the 'var' keyword, followed by the variable name and an optional initial value.
  • After the declaration, the variable is empty (it has no value).

Related Questions:

In Digital Logic Designs, GAL is abbreviated as:
COBOL is an acronym for............
To process data, computers use
The process of correcting errors in a program:

താഴെ പറയുന്ന പ്രസ്താവനകളിൽ ജാവയുമായി ബന്ധപ്പെട്ട് ശരിയായത് ഏതാണ് ?

  1. സൺ മൈക്രോസിസ്റ്റത്തിന് വേണ്ടി ജെയിംസ് ഗോസ്‌ലിംഗ് വികസിപ്പിച്ചെടുത്തു 
  2. ജാവ ഇപ്പോൾ ഒറാക്കിൽ കമ്പനിയുടെ നിയന്ത്രണത്തിലാണ് 
  3. ജാവ പ്രോഗ്രാം ആദ്യമായി അവതരിപ്പിച്ചത് 1985 ൽ ആയിരുന്നു 
  4. ജാവ പ്രോഗ്രാമിങ് ഭാഷയുടെ പരിഷ്കരിച്ച പതിപ്പാണ് - ജാവ സ്ക്രിപ്റ്റ്