Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript

My Phaser.js file looks waaay different from what it is in the video. It has thousands of codes all mashed together.

My Phaser.js file looks waaay different from what it is in the video. It has thousands of codes all mashed together.

1 Answer

Steven Parker
Steven Parker
229,644 Points

It sounds like you're working with what is known as a "minified" file. This is a common technique to improve loading efficiency, but it makes the file essentially unreadable.

The source website likely offers an original source version also. And there are tools that can reformat minified code, such as the "pretty print" function in the Chrome DevTools (the "{}" symbol in the lower left of the source pane).