what is a dictionary in programming 1

what is a dictionary in programming

// This is a JS Object (dictionary eqiv.)
var obj = {
  num:16,
  str:'hello',
  bool:true
};

Here is what the above code is Doing:
1. We’re creating a variable called obj.
2. We’re setting obj equal to an object.
3. The object has three properties: num, str, and bool.
4. Each property has a value.

Similar Posts