Both are correct. The word grammar is a non count noun (mass noun), so you can omit it or use the . The only article you cannot use is a/an.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.
Vibhanu What is the correct sentence.."I didn't consider about grammar" or "I didn't consider about the grammar"Neither is natural. We do not 'consider about' things.