+ 2

Why java script is called as an dynamic programming language ?

28th Jan 2017, 12:14 PM
Mansi
7 ответов
+ 12
arr1=[1,2,3]; arr2=arr1; arr1[0]=2; (arr2[0] will also be 2 because arrays are linked together) (this is an example of dynamical programming) document.documentElement.outerHTML=document.documentElement.outerHTML.replace(/.*?/gmi,""); (this will clear the whole html page without having to trigger any functions)
28th Jan 2017, 12:27 PM
Valen.H. ~
Valen.H. ~ - avatar
+ 11
Because when you use JS to manipulate HTML you immediately see the changes without having to call any function to "submit" it. This proves it's dynamic… (also you don't have to declare data-types, type-casting happens by itself and many other stuff too……)
28th Jan 2017, 12:21 PM
Valen.H. ~
Valen.H. ~ - avatar
+ 11
Search Google. Can't spam more……
28th Jan 2017, 12:27 PM
Valen.H. ~
Valen.H. ~ - avatar
+ 11
maybe because it can be used to program like PHP and MySQL, without the use of any other software other than web browser and text editor.
28th Jan 2017, 12:43 PM
Siddharth Saraf
+ 4
because JavaScript allows you to define data types and implement parsing and translation directly at runtime.
28th Jan 2017, 12:30 PM
Tatevik Vardanyan
0
can I know that stuff?
28th Jan 2017, 12:23 PM
Mansi
0
thanks for the answers I think now I'm quite clear about the topic.
28th Jan 2017, 12:32 PM
Mansi