question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Console logs explanation need to be (beginner) friendly

See original GitHub issue

Challenge Profile Lookup has an issue. User Agent is: Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36.

Just run and check the output on console it showing all the array firstName without iterating it. My code:


//Setup
var contacts = [
    {
        "firstName": "Akira",
        "lastName": "Laine",
        "number": "0543236543",
        "likes": ["Pizza", "Coding", "Brownie Points"]
    },
    {
        "firstName": "Harry",
        "lastName": "Potter",
        "number": "0994372684",
        "likes": ["Hogwarts", "Magic", "Hagrid"]
    },
    {
        "firstName": "Sherlock",
        "lastName": "Holmes",
        "number": "0487345643",
        "likes": ["Intriguing Cases", "Violin"]
    },
    {
        "firstName": "Kristian",
        "lastName": "Vos",
        "number": "unknown",
        "likes": ["Javascript", "Gaming", "Foxes"]
    }
];


function lookUpProfile(firstName, prop){
// Only change code below this line
    console.log(firstName);
// Only change code above this line
}

// Change these values to test your function
lookUpProfile("Akira", "likes");

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:21 (18 by maintainers)

github_iconTop GitHub Comments

2reactions
ed42311commented, Jun 28, 2017

Sweet, I’m on it. Figured out the first step, environment setup and first change made, I like this structure, very clean. Excited to break into this, I’ll send up a PR in a few days and see if what I have in my head matches what should be in the repo 🍂

2reactions
ed42311commented, Jun 26, 2017

@QuincyLarson yes, one challenge. The debugging challenge sounds like great spot for it… I’ve taken a quick look at the repo, need to start messing around with it a bit, very cool setup, Some new stuff I haven’t experienced before. I have no particular connection to completing this if someone else can target it more easily, I’ll continue to get comfortable in the environment and keep looking for good places to contribute either way.

Read more comments on GitHub >

github_iconTop Results From Across the Web

What is the purpose for console.log? - Codecademy
So if we want to know what it's thinking, we sometimes have to ask it to speak to us." That isn't a good...
Read more >
Console.log Complete Guide - JavaScript Debugging Tips for ...
Get the full course: https://learn.react.school/p/react- beginner -challenges-25-debugging-exercisesIn this video for JavaScript beginners we ...
Read more >
7 Tips & tricks to make your console.log() output stand out ...
1. Styling your console.log. Is this necessary? Probably not, but if you want to leave an easter egg message on your portfolio website's...
Read more >
RxJs for Beginners: A Beginner Friendly Introduction
This post is a beginner-friendly introduction to the concepts of RxJs streams, Observables, operators and Functional Reactive Programming ...
Read more >
Beginner-friendly guide to understanding JavaScript
Today, you need to learn JavaScript to work as a web developer. ... console.log(bill_jhonny; // Output : BillJhonny {% code-block-end %}.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found