_p_

"use strict";
///home/hav/hv/vhost10666/JS/blank/htdocs/c/h/js/std/class2.js
var myApp = myApp || { }; // top-level namespace

$(function() {	//start when DOM ready
    let msg = "";
    msg += "palindrome with recursion <br/>";

var Recu = {
    run: function isPalindrome(text) {
        if (text.length <= 1) return true;
        if (text.charAt(0) != text.charAt(text.length - 1)) return false;
        return isPalindrome(text.substr(1,text.length - 2));
        }	
    }

    let is = false;
    is = Recu.run('RecuuceR');
    msg += "Recu.run('RecuuceR') = " + is + "<br/>";
    is = Recu.run('RecuueR');
    msg += "Recu.run('RecuueR') = " + is + "<br/>";

    document.getElementById('place').innerHTML =  msg;
})