Personally, I would go with a Mac here, but that is because it is what I am familiar with for development work. I have been a Windows user since the 90s, and still have a Windows machine, but since 2004 (ish) I have used OS X for professional work (multiple Macbook Pros and Mac Minis) and have never regretted it once the initial adjustment period was over.
I will point something out that has not been mentioned, if you you pick a Macbook Pro you still have the option to legally use Windows in a VM (I have a Windows 10 VM on my MBP) or via Bootcamp. If you pick a Windows laptop then you no longer have OS X as a (legal, non-hacky) option. So, ignoring the cost aspect, the Macbook Pro leaves your options open in terms of what OS to use.
Generally, with the stated goal of learning Front End Development, I would recommend that you choose whatever represents the least impediment to your learning. If you are most comfortable with Windows, then go with that, if you are more comfortable with OS X, then that should be your choice.
Now, with that said, this is a hardware recommendation site so I should tackle the question from that point of view rather than ease of use and the OS options.
First on my list, is build quality. There are some non-Apple models that approach the build quality of a Macbook Pro, but you will need to do some research - consistency between model refreshes can be a problem even for normally reliable brands. I have used multiple models over multiple years from Apple and they are very, very consistent in this regard.
Perhaps even more telling: I have had 4 Macbook Pros provided for me by my employer, but for about 18 months that was not the case and I had to buy my own laptop. I evaluated many, many options (several years previously I did the same thing and ended up with a Sony). In the end, none of the models I evaluated could touch the Mac for build quality. I purchased the MBP with my own money and can honestly say that I felt no regret at all, I felt I had gotten value - it's a good acid test for anything - when you fork over the money, do you feel ripped off or do you feel satisfaction with your purchase?
Second in my list comes the keyboard and trackpad. Make sure you use the keyboard and trackpad in person, don't rely on reviews - it's too much of a personal preference in terms of tactile response, feedback etc. - only you know what laptop "feels right" when you are using it. You are going to do a lot of typing on it, make sure it feels good. Note: here is where I am mostly "locked in" to Mac laptops now - their keyboards and trackpads are how I expect things to work, anything that fails to hit those same notes just feels wrong.
Next, the screen. The retina screen tech is very nice and the extra real estate helps if you aren't going to be plugging it into external monitors. Yes, you can get non-Mac laptops to match the resolutions, but they won't come cheap. I used to detest glossy screens, but the retinas are nice enough to convince me to give them a shot - so far, so good.
Finally, size and weight. I am not a small person, and I find the 15" MBP to be the perfect trade off in terms of size versus functionality in a laptop. I have tried out smaller laptops and found the keyboard and the screen too cramped. Plus, they keep making it smaller and lighter - my 2015 MBP is a lot better than my 2009 in that regard (I no longer have my 2004 model to compare unfortunately). That being said - you have to lug this thing around, so make sure you won't be looking enviously at people with 11" ultrabooks when doing so.
It might seem odd that I don't mention memory, CPU or disk. I don't mention them because if you pick a recent model MBP it won't be a concern for the work you mentioned (maybe for Photoshop), and if you pick something else you will be looking to match or exceed those specifications in any case. Just make sure you have an SSD - it's just not worth it not to these days.