Skip to main content

Posts

Showing posts from June, 2020

Why is Javascript said to be a Dynamic Language?

What is Javascript? JavaScript, JS is well known as scripting language for Web pages.  Many server and desktop program also use JavaScript. It is an object oriented programming language which is designed to make the web development easy and very attractive. It is Used with HTML and CSS and is very important tool for any web developer.  So Why Do you think that Javascript is called as a Dynamic Language? Consider the example shown below:  Here I assign the 'Peter' for the variable called 'name'  let name='Peter';                                                                                                              In the browser  Chrome Console , if you enter typeof(name), you will get the type shown as String as shown below: Here  typeof is a reserved keyword.  Later If I assign a value 1 for name                 name=1;                 console.log(name); //this will return a value 1  Now in the browser console, if you enter typeof (name), you wi