java script is loosely typed,while the java required the data types be strongly typed


Java requires that data types be strongly typed.If a function expects one of its arguments to be a number, the function will not accept a character string.
JavaScript is loosely typed. JavaScript has numbers, character strings, and Booleans and freely interchanges them.