The B major scale has 7 notes: B – C♯ – D♯ – E – F♯ – G♯ – A♯. The major scale is the yardstick of Western music: every other scale is described by how it differs from it, chords are built from it, and do re mi fa so la ti is its sound. On guitar it is the scale to learn second, after the minor pentatonic.
It is the yardstick the other scales are measured against. It has exactly the same notes as G♯ minor, started from a different root.
The explorer above is set to B major: the whole neck is mapped, and you can zoom into any of its 7 positions, change the labels to degrees or fingers, and hear it up, down and in patterns.