int count; /* count is int type, association between data typeand variable is static or fixed */
count = 10; // no errorcount = 'Hello'; // errorboolean count; // error
var foo; // without assigned value, variable holds undefined data type
var foo = 10; // foo is Number type now, association between data// type and value is dynamic / flexiblefoo = 'Hi'; // foo is String type now, no errorvar foo = true; // foo is Boolean type now, no error