The gas I bought was $20
The gas I bought was $$gasvariable
The difference between the single quote and double quote is that single quotes will take
everything literally. So in my example above it will ignore the variable and print it out literally as written.
Where as the double quotes will interpret the variable and print the assigned variable's value.
Home