I think it's A
Which of the following sentences is correct?
I stayed up all night doing homework; however, I just couldn't concentrate.
I stayed up all night doing homework, however I just couldn't concentrate.
I stayed up all night doing homework however, I just couldn't concentrate.
I stayed up all night doing homework, however. I just couldn't concentrate.