We are here with you hands in hands to facilitate your learning & don't appreciate the idea of copying or replicating solutions. Read More>>

Looking For Something at vustudents.ning.com? Click Here to Search


+ Link For Assignments, GDBs & Online Quizzes Solution


+ Link For Past Papers, Solved MCQs, Short Notes & More

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 difference
var 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" 
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 {....}

+ Click Here To Join also Our facebook study Group.

..How to Join Subject Study Groups & Get Helping Material?..

See Your Saved Posts Timeline

Views: 14


+ http://bit.ly/vucodes (Link for Assignments, GDBs & Online Quizzes Solution)

+ http://bit.ly/papersvu (Link for Past Papers, Solved MCQs, Short Notes & More)

+ Click Here to Search (Looking For something at vustudents.ning.com?)


You need to be a member of Virtual University of Pakistan to add comments!

Join Virtual University of Pakistan

© 2019   Created by + M.Tariq Malik.   Powered by

Promote Us  |  Report an Issue  |  Privacy Policy  |  Terms of Service