---
# System prepended metadata

title: 'Unit 1: Lesson 4 - Debugging Labs (Variables, Arrays, Objects)'
tags: ['''23-''24']

---

# Unit 1: Lesson 4 - Debugging Labs (Variables, Arrays, Objects)

## Lab 1: Debugging Variables and Primitive Data Types [2 pts]

### Objective:

The objective of this lab is to debug a JavaScript program that demonstrates the proper use of variables and primitive data types.

### Description:

In this lab, you will correct the code of a JavaScript program that showcases the correct usage of variables and primitive data types. It should declare variables, assign values to them, reassign values, and perform basic data manipulation. The program should prompt the user for input, convert it to the appropriate data type, and display the results.

## Lab 2: Debugging Arrays and Array Methods [1.6: 2 pts]

### Objective:

The objective of this lab is to debug a JavaScript program that demonstrates the proper handling of arrays and array methods.

### Description:

In this lab, you will correct a JavaScript program that focuses on the correct usage of arrays and various array methods. It should declare an array, access its elements, update them, and utilize array properties and methods to manipulate the array's contents.

## Lab 3: Debugging Objects [1.6: 2 pts]

### Objective:

The objective of this lab is to develop a JavaScript program that showcases the appropriate usage of objects and their properties.

### Description:
In this lab, you will correct a JavaScript program that highlights the proper utilization of objects and their key-value properties. It should declare an object, access its properties using both dot notation and bracket notation, update properties, add new ones, and remove properties.