The number of frets on an electric guitar makes a difference because of scale length. Scale length is the distance from the bridge of a guitar to its nut. If you have two guitars of different scale lengths (a Fender and a Gibson for example), put the same gauge strings on them and tune them to the same pitch you will notice that the Gibson’s strings are looser. The reason for this is that the Gibson’s Scale length is shorter than a Fender’s. Go to a guitar store and check this out for yourself if you want. The scale lengths are different and you will see that their respective scale length affects string tension. Tighter strings can make a guitar more difficult to play and can also affect tone.
If a guitar has an extra two frets then obviously it has a longer scale length. This means that if you have a 24 fret guitar your strings will be tighter relative to what it would have been if you had a 22 fret guitar.
Scale length will also change the position of your pickups along your strings vibrating length. This is important because there is a harmonic at the 24th fret and if you have 22 frets the harmonic sits over the pickups. Many people including myself feel that 22 fret guitars sound better. However, it is also true that many players feel that 24 frets gives a player more flexibility.
I would recommend you try both out for your self and see which one you prefer to play with. There is a trade off between the flexibility of having 24 frets and the tone and playability of 22.
You can learn to play guitar by joining JamPlay or Guitar Tricks they both charge just a small monthly fee, and are excellent online guitar schools. For more info click one of the banners on this page. You could also purchase one of these online guitar lessons

