This is a project I did back in college when I was studying web development. It's a JavaScript implementation of the famous game, Connect-Four. It's a game I loved playing as a kid (and I still do!). It had interesting enough logic for me to learn how to code it. Also, at the time I did this, I remember searching the web and not being able to find any pure JavaScript implementation of it, so I went ahead and did one.
Even though I did not use 'real AI', when you play against the bot it might win a round or two. Give it a try!
Play the Game View Source Code