<file_sep>//ZachDickinson
// This code will sum an array of ints by using reduce
var list = [2, 4, 6, 8];

console.log(list.reduce(function(prevVal, currentVal) {
	return prevVal += currentVal;
}));

<file_sep>   // ZachDickinson
	// this code will match regexps that are 4 or 6 chars in length
var brown = ["bark", "meow", "gobble", "mooooooooo"];
var brow = new RegExp("^[0-9]{4}([0-9]{6})?$")
var toop = [];
for ( var i = 0; i < brown.length; i++) {
	if ( brow.test(brown[i])= true ) {
	toop.push(brown[i]);
}
}
console.log(toop);
<file_sep><<<<<<< HEAD
# test2ZWD
My practicum codes from test2
=======
# practicum
CMP237 Practicum problems for Exam No. 2
>>>>>>> c339f84fe623067de2db7d29e729b9f2f7b686e5
