Check out example codes for "variables". It will help you in understanding the concepts better.
Code Example 1
var something = something;
Code Example 2
//You can make a variable by using:
var variable-name = 'defenition of the variable';
// Or you can use
let variable-name = 'defenition of the variable';
Code Example 3
<?php
/* In PHP, a variable starts with the $ sign,
followed by the name of the variable:
*/
$txt = "Hello world!";
$x = 5;
$y = 10.5;
?>
Code Example 4
//variables can include any letter, any number, or the underscore
//NO SPACES!!! USE UNDERSCORES!!!
//variable names are case sensitive (i.e. this_variable is different from ThiS_VarIaBle)
//example:
var change_this = 'whatever you want here'
//change_this is a variable (change it to your variable name)
//'whatever you want here' is an assignment to the variable change_this.
Learn ReactJs, React Native from akashmittal.com