Ask Question

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.

+2
Answers (1)
  1. 6 July, 13:58
    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?
Find 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 the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers