Valid or invalid variable name?

Ace your homework & exams now with Quizwiz!

sizeOfCircle

Valid variable name (uses camelcase)

circle size

Invalid variable name: Cannot include space

1count

Invalid variable name: Cannot start with a number

$cost

Invalid variable name: Must begin with a letter (usually lowercase)

count

Valid variable name

triangle-size

Valid variable name (dash is ok)

triangle_size

Valid variable name (underscore is ok)

homeAddress2

Valid variable name (uses camelcase and digits)


Related study sets

Study Island- Cultural Literature

View Set

BLY 122 - Chapter 46 Learning Curve

View Set

Research Methods - Levels of Evidence

View Set

Med-Surg- ATI skill module 3.0-Diabetes mellitus management

View Set

Abeka American Literature Quiz 10

View Set

Chapter 10 SCIENCE TEST!!😱😱😱🤓

View Set

Test 1 - Individual Differences & Emotions (3)

View Set