Other Languages

Php Variables, Definition

Php implicitly changes types as needed
Variables names are case sensitive

$name = 'John'
echo $Name; // Undefined variable: Name
Variables

Java Basics, Variables

Local variables must be initialized before use
Variables are passed by value, not reference

class
  int b; // default 0
  method
    String a = "a"
Variables

Python Language, Variables

Assign multiple variables in one line
The * operator performs repetitions on strings

a, b, c = [1, 2, 3]
assert a == 1
assert b == 2
Assert, Variables



Javascript

Javascript Fundamentals, Variables

Variable declaration, let keyword
Old var, visible through blocks
 
var a = 1 // global
let b = 2
Variables