top of page
Search
zakariyesahid96

Variable naming and convention

  • Variables can’t have spaces between words such as let hello world.

  • Also can’t do 1 user or a digit in a variable name, cannot be the first character.

  • Identifier/s are used for sequence of characters in code that identifies variables, functions, property

  • In js it’s case sensitive and can obtain Unicode letters , $ and digits from 0-9. However may not start with a digit.

  • Can do let_age.

  • camelcase is when each nee word has a uppercase first letter expect for the very first.

  • Important to make names clear, don’t do let = n could be name ,number or username.

  • For Boolean let is gameOver=true, used is to be more clear.

  • Understood the concept quite well and onto the next one.

0 views0 comments

Recent Posts

See All

Σχόλια


Post: Blog2_Post
bottom of page