function longestWord(sen) {
// ‘sen’ is a string and ‘match’
// matches all the items in the …
Read more
function getPrimeNumber(num) {
var arr = [];
for(var i = 1; i < num + …
Read more
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<?php the_content(); ?>
<?php endwhile; endif; ?>
<h2 class=”clear”>Featured Projects</h2>
…
Read more
var str = ‘blah’;
function reverseStr(str1) {
var arr1 = str1.split(”);
var arr2 = [];
…
Read more
var pageUrl = window.location.href;
if(pageUrl.toLocalLowerCase().indexOf(‘mattjennings.net/blog’) != -1) {
// JS to execute here
}
var pageUrl = window.location.href;
if(pageUrl.toLocalLowerCase().indexOf(‘mattjennings.net/blog’) == -1) {
…
Read more