This visual trace shows how readonly arrays work in TypeScript. First, we declare an array with the readonly keyword, which means we can read elements but cannot change them. Reading nums[0] prints 1 successfully. Trying to assign a new value to nums[1] causes a compile error, so that line is commented out. We then use the map method to create a new array with doubled values, which is allowed because it does not change the original array. The new array is printed as [2, 4, 6]. The variable tracker confirms nums stays unchanged throughout. Key moments clarify why modification is disallowed and how to work with readonly arrays safely. The quiz tests understanding of these steps.