Fun With Variables On P5js.

can used variables to declare something equals to some other date, and most of their variables we has seen previously in high school. by declaring an object let say number 5 as x the computer will identify everything you ad x as the number 5 so you don’t have to remind it all again. it can also be a shape or a person for example x=dinosaur or x=jhoan, now the computer will identify your character every time you type x to a set of code just to simplify the code you are trying to interpret. back in the days we used to have var as the variable but now we used let to start the process. For more information you can refer to this link. https://github.com/processing/p5.js/wiki/JavaScript-basics#variable-names


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s