***Assessment Test JavaScript - BLANK

Assessment Test JavaScript - BLANK

by nickadeemus2002

HTML

<script src="https://getfirebug.com/firebug-lite-debug.js"></script>

JavaScript

/*
************************************************************
JS Questions
************************************************************
*/

/////////////////////////////////////////////////////////////////////////////////////
/*
//#1
given brString, replace all instances of X with R.
console.log your response variable
*/

var brString = "BlueXocket is Xeady to Xock in 2015!";
//create your logic here

//my output
console.log('*** answer #1: reformatted string with "R" ');
//output your answer here:



//////////////////////////////////////////////////////////////////////////////////////


/*
//#2
given serverResponse array, get OBECT #3 (where 'title' 
contains "New York") and store its 
"title" property to a variable.
console.log your stored variable.
*/
var serverResponse = [
    {
    title: "India, Dubai and London",
    link: "http://intranet/node/236",
    description: "<p>OBJ-1 \n<table width='396' h...n leaders meeting.</p>\n"
}, {
    title: "Brazil, Saudi Arabia, Ko...York, Boston and London",
    link: "http://intranet...m/dom/node/235",
    description: "<p>OBJ-2  Over the last couple ...ing my son Fraser.</p>\n"
}, {
    title: "New York, Montreal, Le H...an Francisco and Denver",
    link: "http://intranet...m/dom/node/237",
    description: "<p>OBJ-3 It has been a fairly ... Aires, Argentina.</p>\n"
}, {
    title: "Toronto, Tuscany, Singap... Challenge and ‘5 at 5’",
    link: "http://intcomms.intranet...m/intcomms/dom/node/229",
    description: "<p>OBJ-4 Over the last few wee... of client visits.</p>\n"
}];

//create your logic here

//my output
console.log('*** answer #2: object title property NYC');
//output your answer here:



/////////////////////////////////////////////////////////////////////////////////////


/*
//#3

++ create a "Dog" 'class' constructor function.  
the constructor should a have/set a "name" property.

++ create a class method named "bark"
that outputs "default bark" to console.log().

++ create a class method named...