Ask Question
23 May, 16:52

Explain the naming rules for creating variables, and then provide three examples using the data types int, double, and char and assign values to them.

+5
Answers (1)
  1. 23 May, 19:16
    0
    I will answer for jа vascript language.

    Naming rules for creating variables:

    The first character must begin with:

    Letter of the alphabet. Underscore (_) (not recommended). The dollar sign ($). (not recommended).

    After the first character:

    Letters. Digits 0 to 9. No spaces or special characters are allowed.

    About length:

    No limit of length but is not recommended to use large names.

    About case-sensitive:

    Uppercase letters are distinct from lowercase.

    About reserved words:

    You can't use a jа vascript reserved word for a name.

    Example:

    var ten = 10;

    var pi = 3.14;

    var name = 'Josh';
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “Explain the naming rules for creating variables, and then provide three examples using the data types int, double, and char and assign ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers