learngs2:variables

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
learngs2:variables [2023/02/24 12:44] twinnylearngs2:variables [2023/02/24 12:47] (current) twinny
Line 14: Line 14:
 Here we have created a variable, this.greeting, and we have placed the "Hello there!" literal string inside it. Here we have created a variable, this.greeting, and we have placed the "Hello there!" literal string inside it.
  
-This is cool....what does it do? Well, we can now reference the variable we just created:+This is cool.what does it do? Well, we can now reference the variable we just created:
  
-<code>+<code javascript>
 function onCreated() { function onCreated() {
   this.greeting = "Hello there!";   this.greeting = "Hello there!";
Line 34: Line 34:
 Success! We can store a lot of different data types inside a variable. Some examples include: Success! We can store a lot of different data types inside a variable. Some examples include:
  
-<code>+<code javascript>
 function onCreated() { function onCreated() {
   this.string = "Hello there!";   this.string = "Hello there!";
Line 57: Line 57:
 clientr. - These are very similar to client. flags but they are different in that they can only be read and not written from clientside: we will come back to this! clientr. - These are very similar to client. flags but they are different in that they can only be read and not written from clientside: we will come back to this!
 server. and serverr. - These are variables which are stored in the server itself. We do not need to focus on these for now server. and serverr. - These are variables which are stored in the server itself. We do not need to focus on these for now
- 
-This is likely very confusing but again, it will make sense the more you learn and practise with the concepts coming in these lessons! 
  
 </code> </code>
- + <font inherit/Arial, sans-serif;;inherit;;rgb(24, 26, 27) color: rgb(211, 207, 201); font-family: Arial, sans-serif; --darkreader-inline-bgcolor:#131516; --darkreader-inline-color:#c9c4bd;>This is likely very confusing but again, it will make sense the more you learn and practise with the concepts coming in these lessons! For now, we can move on</font>
-For now, we can move on+
  
  
  • learngs2/variables.1677242650.txt.gz
  • Last modified: 2023/02/24 12:44
  • by twinny