Discover answers to your most pressing questions at Westonci.ca, the ultimate Q&A platform that connects you with expert solutions. Explore comprehensive solutions to your questions from a wide range of professionals on our user-friendly platform. Discover in-depth answers to your questions from a wide network of professionals on our user-friendly Q&A platform.

Why is it important to follow a consistent naming convention for variables?
because it is confusing to read code that uses variable names inconsistently
because a computer will attempt to execute instructions exactly as they are written
because a variable name cannot start with a number
because variable names cannot include special characters


Sagot :

Answer:

Variables are to name something, so it can be easily remembered.

Explanation:

Variables can be used to rename something in a program by using a value, to make it shorter and easy for you and the computer to remember.

Variable = Value

Name = "Jason"

 Jason is a string value being assigned to Variable.

Variables should be short and easy to remember:

Jason

This works.

JasonMichealJohnson

This is too long.

Variables should begin with a letter in the alphabet:

Vbux

This works.

10000000Vbux

This doesn't work. Too long and doesn't start with an alphabet.

Variables can contain letters, numbers, and some characters like an underscore. Not reserved characters. Use _ for more than one word in a variable instead of using space OR use uppercase letters to start each word with no space between words.