JavaScript / ES6
JavaScript is among the most powerful and flexible programming languages of the web (Java and JavaScript are totally different languages, don't get confused).We can make dynamic HTML using JavaScript, Even it supports CSS as well.How to define a variable ?Strings are a primitive(from the start have been used) data type. They are any grouping of characters (letters, spaces, numbers, or symbols) surrounded by single quotes ' or double quotes ".var university = "Virtual University of Pakistan"var is a keyword, university is a string type variable.We can write it in single quotes as well, there is not any differencevar university = 'Virtual University of Pakistan'while var has been available in JavaScript since its initial release, let and const are only available in ES6 (ES2015) and up.let university = "Virtual University of Pakistan"const university = "Virtual University of Pakistan" const is not for variables; it's for constant values which may not be stored anywhere.var keyword, which defines a variable globally or locally to an entire function regardless of block scope{....}. But let and Const are limited in the scope to the block {....}See More
from Latest Activity on Virtual University of Pakistan https://ift.tt/31m7bqA
0 comments:
Post a Comment