Ask Question
5 June, 00:50

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.

+3
Answers (1)
  1. 5 June, 03:35
    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 and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers