There are several reasons not to use SELECT * in your code, here are just some:
1) Often you only need a subset of attributes so it generates more network traffic then required
2) Does not avail of covering indexes in the table if they are present
3) If the table definition changes you could end up with more columns than requested when you originally wrote the query which could have unforeseen results.
Some very useful interview questions for front-end developers: