Need to find the password

Hi everyone,
This is my homework for cybersecurity class
I need to find the password from the javascript
I really got stuck here.
Can someone show me the steps on how to figure out the password?
Thanks for the help
<!doctype html>

Challenge 3

Challenge 3

Find the password!

Hint: There's a bad function in here.


Thanks for Playing

		function init() {
			var btnGo = document.getElementById("btnGo");
			btnGo.onclick = function () {
				var myPass = document.getElementById("myPass").value;
				var myOut = document.getElementById("output");
				if (fun_times(myPass)) {
					myOut.innerHTML = "Authenticated!";
				} else {
					myOut.innerHTML = "Incorrect!";
		function fun_times(aString) {
			var mess = "dmFyIHBhc3MgPSAiZXZhbGlzZXZpbCI7DQppZiAoYVN0cmluZyA9PT0gcGFzcykgew0KCXN1Y2Nlc3MgPTE7DQp9IGVsc2Ugew0KCXN1Y2Nlc3MgPTA7DQp9";
			if (success) {
				return true;
			} else {
				return false;
		window.onload = init;

Firstly, welcome to the forums.

While we are primarily here to help people with their Free Code Camp progress, we are open to people on other paths, too. Some of what you are asking is pretty trivial in the Free Code Camp context, so you might find that if you’re not getting the instruction and material you need in your current studies, the FCC curriculum will really help you get started. At a modest guess I’d say investing a 4-5 hours working through the curriculum here will really pay off. You can find the curriculum at

With your current questions, we don’t have enough context to know what you already know or don’t know, so it is impossible to guide you without just telling you the answer (which we won’t do).

Let us know what you have figured out so far and I’m sure you’ll get more help.

Happy coding :slight_smile: