Access is denied?!


#1


Error: Access is denied.

WHAT?! WHAT DOES THAT EVEN MEAN?!?!?!

Here's my code if it helps:

var friends = {
    bill: {
        firstName: 'Bill',
        lastName: "a'Bong",
        number: '(850) 333-3333',
        address: ["Pensacola","FL"]
    },
    steve: {
        firstName: 'Steve',
        lastName: 'Alicious',
        number:'(123) 456-7891',
        address: ['Virginia Beach','VA']
    }
};

var list = function(friends) {
    for (var lastName in friends) {
       console.log(lastName);
    }
};

var search = function(name) {
    for (var nameSearch in friends) {
        if (friends[nameSearch].firstName === name) {
            console.log(friends[nameSearch]);
            return friends[nameSearch];
        }
    }
}
search('Bill');


#2

@kineticcodecolin,
Have you tried a refresh Browser ??

++++ reset of session *****************
As you are manipulating with objects
under certain circumstances you can shoot your Browser in an
inconsistent state.

Therefor it is of an advantage to know that you have 2 reset facilities:

One is the use of the F5-key which does a refresh Browser

and

Two, select&copy your code
Then use the Reset Code button of the course-window,
then paste your code back in.

Addendum
General Notes:
Always refresh the browser after making corrections:
CTRL f5 ( if on Windows or Linux)
CMD r ( if on a MAC).
CTRL 0 to reset browser zoom


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.