how can i make class inside JS file ? and why i had to make a class ? i used to work without making classes from several years but i found i had to know little about that instead of ignoring it. i need to know the main form of it & a clear example , because i found lots of answers but it makes me confused little a bit .