/*
************************************************************
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...
Please Whitelist JSFiddle in your content blocker.
Help keep JSFiddle free for always by one of two ways:
Whitelist JSFiddle in your content blocker (two clicks)
Go PRO and get access to additional PRO features →
Join the 4+ million users, and keep the JSFiddle dream alive.
Ad-free
All ads in the editor and listing pages are turned completely off.
Use pre-released features
You get to try and use features (like the Palette Color Generator) months before everyone else.
Fiddle collections
Sort and categorize your Fiddles into multiple collections.
Private collections and fiddles
You can make as many Private Fiddles, and Private Collections as you wish!
Console
Debug your Fiddle with a minimal built-in JavaScript console.