Watching:

Intro to Strong, Weak and Duck-Typed Programming Languages


show more JavaScript is a weakly-typed language that, unlike strong languages, does not require programmers to decide exactly what type of information each variable holds. Instead, the language uses generic variables. There are, however, several rules that you must follow to write JavaScript programmers that work as intended. This video tutorial from Lynda.com will help you in understanding strong, weak, and duck-typed languages so you can use JavaScript effectively. show less
please wait ...

Understanding strong, weak, and duck-typed languages

In many programming languages when you create a variable, you don't just give it a name but you must also say exactly what type of information is going to be stored in that variable. You must decide beforehand if it's going to store an integer, meaning a whole number without anything after the decimal point, or perhaps a floating-point number which might have a value after the decimal point or perhaps you need to store a single character, just one letter, or perhaps multiple characters, what's called a string, or is it a Boolean value, and that just means a value that can only be true or false, or it could be even more complex type of data, but you have to choose that data type.

And once you have chosen it you are not allowed to change it, and that's what's known as a strongly typed language. You can create as many variables as you want but each variable must be of one particular type and that's actually enforced and it can cause your program to crash if you try to...

Understanding strong, weak, and duck-typed languages
Video duration: 3m 51s 4h 47m Beginner

Viewers:

JavaScript is a weakly-typed language that, unlike strong languages, does not require programmers to decide exactly what type of information each variable holds. Instead, the language uses generic variables. There are, however, several rules that you must follow to write JavaScript programmers that work as intended. This video tutorial from Lynda.com will help you in understanding strong, weak, and duck-typed languages so you can use JavaScript effectively.

Subjects:
Developer Web
Author:
please wait ...