Concept of Pass by Value and Pass by Reference is present in every programming language, but we don’t realize it often. Let’s go straight into explanation. var a = 5
var b = ["Mumbai","Bangalore"]; In above example variable “a” contains the literal value i.e. 5 whereas in variable “b” address…