Console logs explanation need to be (beginner) friendly
See original GitHub issueChallenge 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:
- Created 6 years ago
- Comments:21 (18 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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 🍂
@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.