weakly typed vs strongly typed code example

Example: strong typing loose typing

Static-typing: 

	once variable is declared and has type so then it can’t changed

Dynamic-typing: 
	
	variable types or reference can change as program executes

Loose-typing: 

	will allow you to switch b/w types easily and do implicit type 	
	conversions behind the scenes

	examples: javascript

Strong-typing:
 
	a Program that doesn’t do implicit type conversions and require 
    you to manually convert b/w types is called strong typing

	examples: python

Tags:

Misc Example