I got the search text thing working finally! Phew! But now i'm trying to improve on it using the match() function. I'm not sure why this isn't working. How do pass a var into the match( ) function? Is my syntax correct? Thanks guys!
var text = "Hi my name is Sanny. I'm gonna be starting a solo project soon but I'm not entirely sure if I'll call it Sanny yet. My friends say I should call in Sanny or SVelo though! Do think Sanny is a good name for a band?"; var name = "Sanny"; var found = text.match(name); console.log("You're name appeared" + " " + found + " " + "times");