These are chat archives for FreeCodeCamp/HelpJavaScript

30th
Nov 2017
AbrisM
@AbrisM
Nov 30 2017 00:17
Dreaded jquery. There was an app I know that changed desktop programming language into an easier mobile version...it had a cat like icon onit
AbrisM
@AbrisM
Nov 30 2017 00:24
Sorry, thought it was Java
Stephen James
@sjames1958gm
Nov 30 2017 00:31
@breese8009 propTypes tells you what props are passed to the component, isRequired says that the property must be passed or it throws an error
Joshua Arnett
@josha5
Nov 30 2017 00:36
@sjames1958gm Claimed my front end cert a couple days ago :). Wanted to stop in and thank you for all your help again. Also setting up your own web dev environment and learning git is a pain lol
CamperBot
@camperbot
Nov 30 2017 00:36
josha5 sends brownie points to @sjames1958gm :sparkles: :thumbsup: :sparkles:
:star2: 8729 | @sjames1958gm |http://www.freecodecamp.org/sjames1958gm
Stephen James
@sjames1958gm
Nov 30 2017 00:37
@josha5 Congrats!! git is super important to learn though.
Joshua Arnett
@josha5
Nov 30 2017 00:39
@sjames1958gm Yeah I saw that most companies use it for version control. I feel like codepen kind of holds your hand in hosting your projects so I want to create a github portfolio and link all my projects there
Stephen James
@sjames1958gm
Nov 30 2017 00:39
@josha5 Yes, it does, but I think it lets you get your feet wet without drowning, now you are ready to set sail (mixing metaphors :))
Yuserah Din
@YuserahN
Nov 30 2017 01:06
I need some help with my Simon project. Only the first round is going well. After that, it's showing incorrect.
https://codepen.io/Yuserah/full/MOqQyo/
Also, I have not started working on strict mode yet. So ignore that.
abraham anak agung
@padunk
Nov 30 2017 01:44
@breese8009 see here about proptypes. It has its own library now
Youkieyuh
@Youkieyh
Nov 30 2017 02:10

function queue(arr, item) {
// 请把你的代码写在这里

return item; // 请修改这一行
}

// 初始化测试数据
var testArr = [1,2,3,4,5];

// 控制台输出
console.log("Before: " + JSON.stringify(testArr));
console.log(queue(testArr, 6)); // 你可以修改这一行来测试你的代码
console.log("After: " + JSON.stringify(testArr));

这段的意思有点不能理解
abraham anak agung
@padunk
Nov 30 2017 02:14
joyer-lee
@joyer-lee
Nov 30 2017 03:26

function queue(arr, item) {
// 请把你的代码写在这里

return arr.push(item).shift(); // 请修改这一行
}
queue([1,2,3],4);
// 初始化测试数据
var testArr = [1,2,3,4,5];为什么不对

有人没,帮我找找错

function queue(arr, item) {
// 请把你的代码写在这里

return arr.push(item).shift(); // 请修改这一行
}

// 初始化测试数据
var testArr = [1,2,3,4,5];

// 控制台输出
console.log("Before: " + JSON.stringify(testArr));
console.log(queue(testArr, 6)); // 你可以修改这一行来测试你的代码
console.log("After: " + JSON.stringify(testArr));

Youkieyuh
@Youkieyh
Nov 30 2017 03:30

function queue(arr, item) {
// 请把你的代码写在这里
arr.push(item);
return arr.shift(); // 请修改这一行
}

// 初始化测试数据
var testArr = [1,2,3,4,5];

// 控制台输出
console.log("Before: " + JSON.stringify(testArr));
console.log(queue(testArr, 6)); // 你可以修改这一行来测试你的代码
console.log("After: " + JSON.stringify(testArr));
我这样写的

@joyer-lee
joyer-lee
@joyer-lee
Nov 30 2017 03:31
可以啦,谢谢了
Henry
@GitHub-Henry
Nov 30 2017 07:19
姚伏辛
@ReaperPrime
Nov 30 2017 09:12

function queue(arr, item) {
// 请把你的代码写在这里
testArr.push(item);
item = testArr.shift();
return item; // 请修改这一行
}

// 初始化测试数据
var testArr = [5,6,7,8,9];

// 控制台输出
console.log("Before: " + JSON.stringify(testArr));
console.log(queue(testArr,1)); // 你可以修改这一行来测试你的代码
console.log("After: " + JSON.stringify(testArr));

明明queue([5,6,7,8,9], 1) 应该返回 5,怎么还算我有问题
Blauelf
@Blauelf
Nov 30 2017 11:01
@ReaperPrime Inside queue, use function parameter arr instead of global variable testArr.
Markus Kiili
@Masd925
Nov 30 2017 11:07
@Blauelf Did you notice that https://frontendmasters.com has some free JS Kyle Simpson videos this week?
Santosh Vijapure
@santoshvijapure
Nov 30 2017 11:39
@Blauelf hey bluelf im also stuck thr

function nextInLine(arr, item) {
  // Your code here

  return item;  // Change this line
}

// Test Setup
var testArr = [1,2,3,4,5];

// Display Code
console.log("Before: " + JSON.stringify(testArr));
console.log(nextInLine(testArr, 6)); // Modify this line to test
console.log("After: " + JSON.stringify(testArr));
this is it r8??
Markus Kiili
@Masd925
Nov 30 2017 11:43
@santosh62 You need to find the two array methods you need and use them on arr and item as asked.
Santosh Vijapure
@santoshvijapure
Nov 30 2017 11:43
like push and pop??
Markus Kiili
@Masd925
Nov 30 2017 11:44
@santosh62 You have the right method in use. Just do what @Blauelf said.
Santosh Vijapure
@santoshvijapure
Nov 30 2017 11:45
wait ill try this
Blauelf
@Blauelf
Nov 30 2017 11:47
@santosh62 push and unshift add elements to an array, while pop and shift remove and return one element. push and pop work on the back of the array, while unshift and shift work on the front. Pick the right ones. As it's a queue, you want to add elements at one end, and remove them at the other (FIFO - First In First Out)
It's a bit uncommon to combine both operations in one function like this, but well... Just use the right order (first add, then remove, this makes a difference if arr is empty array)
Santosh Vijapure
@santoshvijapure
Nov 30 2017 11:49

i didnt get
i did Q in java n C++

but js bit of comfusing

confusing *
i dont know JSON yet but it is in the problem
Blauelf
@Blauelf
Nov 30 2017 11:53
@Masd925 I just had to allow scripts. Looks like a click on the noscript icon is mistaken for a click on the restore icon (undoing fullscreen) for me, probably due to its position within the window. I still don't really like the changes in FF57 :(
Stephen James
@sjames1958gm
Nov 30 2017 11:53
@santosh62 In c++ vector you have push_back and pop_back which are the same as push and pop with js arrays.
shift/unshift simply do the same to the front of the array
姚伏辛
@ReaperPrime
Nov 30 2017 11:53
thank you,i found my mistake in the second thought
Santosh Vijapure
@santoshvijapure
Nov 30 2017 11:56
should i have to take another array or use already declare array?
testArray i mean
Blauelf
@Blauelf
Nov 30 2017 11:58
Within the function queue, use the function parameters, arr and item. The existence of testArr in the global scope is just a coincidence. Don't rely on it, and don't use it at all.
Santosh Vijapure
@santoshvijapure
Nov 30 2017 12:00

looks like im dummm

im skipping this one


:(
nandoBel
@nandoBel
Nov 30 2017 12:06
Hi! @Blauelf I saw your answer about embeding youtube-vids
I really don't know how to fix it, though
Santosh Vijapure
@santoshvijapure
Nov 30 2017 12:06
yep i got this
thank you dudes @Blauelf @sjames1958gm @Masd925
CamperBot
@camperbot
Nov 30 2017 12:07
santosh62 sends brownie points to @blauelf and @sjames1958gm and @masd925 :sparkles: :thumbsup: :sparkles:
:star2: 8730 | @sjames1958gm |http://www.freecodecamp.org/sjames1958gm
:star2: 4589 | @masd925 |http://www.freecodecamp.org/masd925
:star2: 4658 | @blauelf |http://www.freecodecamp.org/blauelf
nandoBel
@nandoBel
Nov 30 2017 12:07
bildeknapp.addEventListener('click', function(){
jukebox.innerHTML = <video controls autoplay> <source src='https://www.youtube.com/embed/wH4kzAb4l0E'> </video>;
});
I've tried this with no luck
Blauelf
@Blauelf
Nov 30 2017 12:08
@santosh62 There's not much of a difference between the different languages. The names of the array methods are different, but that's it. Java's ArrayList for example has an add and a remove method that allow for adding/removing elements at arbitrary indices. There are also special Queue classes that abstract away that array and allow for insertion/removal at opposing ends only (which then allows them to implement this array in a more efficient way, for example with a circular buffer)
I think the biggest challenge with those problems is understanding the problem description, which in general is one of the biggest challenges in programming. It usually involves both sides.
Santosh Vijapure
@santoshvijapure
Nov 30 2017 12:10
@Blauelf YEP TY
CamperBot
@camperbot
Nov 30 2017 12:10
santosh62 sends brownie points to @blauelf :sparkles: :thumbsup: :sparkles:
api offline
Blauelf
@Blauelf
Nov 30 2017 12:10
@nandoBel Where did you find this kind of embedding? Youtube videos are usually embedded using an iframe.
Santosh Vijapure
@santoshvijapure
Nov 30 2017 12:11
i did this
```

function nextInLine(arr, item) {
  // Your code here
  arr.push(item);
  return arr.shift();
  return item;  // Change this line
}

// Test Setup
var testArr = [1,2,3,4,5];

// Display Code
console.log("Before: " + JSON.stringify(testArr));
console.log(nextInLine(testArr, 6)); // Modify this line to test
console.log("After: " + JSON.stringify(testArr));
but i didnt et this jason stuff
json*
nandoBel
@nandoBel
Nov 30 2017 12:11
@Blauelf I'm just trying stuff out
Blauelf
@Blauelf
Nov 30 2017 12:11
That second return cannot be reached and is just dead code, the rest looks ok.
Stephen James
@sjames1958gm
Nov 30 2017 12:12
@santosh62 The JSON.stringify - is just a helper method to convert js object to a string for output
Youe code has no json only a js array
nandoBel
@nandoBel
Nov 30 2017 12:12
How would I embed a YT-vid in javascript?
Stephen James
@sjames1958gm
Nov 30 2017 12:12
@nandoBel you cannot use youtube URLs in video tags.
Santosh Vijapure
@santoshvijapure
Nov 30 2017 12:12
ohk
but vr going to use json in few days r8
nandoBel
@nandoBel
Nov 30 2017 12:13
I've made a button on a page and want a YT-video to play when pressing that button (using JAS)
*JS
@sjames1958gm Thanks!
CamperBot
@camperbot
Nov 30 2017 12:14
nandobel sends brownie points to @sjames1958gm :sparkles: :thumbsup: :sparkles:
:star2: 8731 | @sjames1958gm |http://www.freecodecamp.org/sjames1958gm
Markus Kiili
@Masd925
Nov 30 2017 12:14
@sjames1958gm I once tried to complain about FCC usage of term JSON when there was no JSON on the challenge, but didn't get much love.
Blauelf
@Blauelf
Nov 30 2017 12:15
@nandoBel I would have expected something like <iframe width="560" height="315" src="https://www.youtube.com/embed/wH4kzAb4l0E?autoplay=1" frameborder="0" allowfullscreen></iframe>, which doesn't give you any control over the content. They have some API that one can use instead.
Stephen James
@sjames1958gm
Nov 30 2017 12:15
@Masd925 Well there is JSON.stringify - which might be misleading.
Markus Kiili
@Masd925
Nov 30 2017 12:15
@sjames1958gm Yes, that doesn't help too.
nandoBel
@nandoBel
Nov 30 2017 12:15
@Blauelf Thanks! I'll try that
CamperBot
@camperbot
Nov 30 2017 12:15
nandobel sends brownie points to @blauelf :sparkles: :thumbsup: :sparkles:
:star2: 4659 | @blauelf |http://www.freecodecamp.org/blauelf
Stephen James
@sjames1958gm
Nov 30 2017 12:16
@santosh62 JSON is a specific string format for representing objects, that is easily translated to/from javascript (the js part of JSON).
Don't confuse that with js object literals.
nandoBel
@nandoBel
Nov 30 2017 12:17
@Blauelf Thanks again! That worked. However, now VEVO won't let me redirect their content :)
CamperBot
@camperbot
Nov 30 2017 12:17
nandobel sends brownie points to @blauelf :sparkles: :thumbsup: :sparkles:
api offline
FlashHero
@FlashHero
Nov 30 2017 12:20
What do the numbers at the bottom represent in a minimax algorithm tree
Santosh Vijapure
@santoshvijapure
Nov 30 2017 12:20
@sjames1958gm hmmm
Blauelf
@Blauelf
Nov 30 2017 12:21
@FlashHero Have a link? I would assume one might put the value of a position there, like -1 player 1 won, +1 player 2 won, 0 it's a draw.
Santosh Vijapure
@santoshvijapure
Nov 30 2017 12:22
i hav created tic tac tio in c++
Blauelf
@Blauelf
Nov 30 2017 12:23
@FlashHero Depending on the game, it might use a point difference instead, and minus or plus infinity to represent a certain player winning.
I thought of the -1/0/1 example mostly for Tic-Tac-Toe, where it's reasonable to simulate playing to the end. A game like chess would use some different heuristics, with a wider spectrum of values.
Santosh Vijapure
@santoshvijapure
Nov 30 2017 12:27

i tried ludo

but my graphics sucks !!!! ;(

Blauelf
@Blauelf
Nov 30 2017 12:41
Ludo? Doesn't this translate to "game" (dative or ablative of "ludus") or "I play" (first person singular of "ludere")? (not sure about the last, Latin grammar wasn't wasn't my favourite part)
Looked up the game. Seems to be a predecessor to German game Mensch ärgere dich nicht ("buddy, don't get angry"). Gives you a few choices, do you have some AI (maybe just a set of rules), or computer players at all?
look at this
@Blauelf
this is just sipmple game with less rules
u dont know it ??? :(
Santosh Vijapure
@santoshvijapure
Nov 30 2017 12:48
/*
NAME:- Santoshkumar vijapure.
ClASS:- SEB-4
ROLL No:-S1711133
SUB:- OOP
*/

                     Assignment :- MINI PROJECT(TIC-TOC-TOE)

Design and develop the Tic-Tac-Toe Game using C++

*/
#include<iostream>
using namespace std;
char square[10]={'0','1','2','3','4','5','6','7','8','9'};
char a[10],b[10];
void board()
{
    cout<<"\n\t"<<" ____"<<"_________"<<"__________"<<"______";
    cout<<"\n\t"<<"|____"<<square[1]<<"____|____"<<square[2]<<"____|____"<<square[3]<<"____|"<<endl;
    cout<<"\t"<<"|____"<<square[4]<<"____|____"<<square[5]<<"____|____"<<square[6]<<"____|"<<endl;
    cout<<"\t"<<"|____"<<square[7]<<"____|____"<<square[8]<<"____|____"<<square[9]<<"____|"<<endl;
}
int checkwin()
{
    if(square[1]==square[2]&&square[2]==square[3])
        return 1;
    else if(square[4]==square[5]&&square[5]==square[6])
        return 1;
    else if(square[7]==square[8]&&square[8]==square[9])
        return 1;
    else if(square[1]==square[4]&&square[4]==square[7])
        return 1;
    else if(square[2]==square[5]&&square[5]==square[8])
        return 1;
    else if(square[3]==square[6]&&square[6]==square[9])
        return 1;
    else if(square[1]==square[5]&&square[5]==square[9])
        return 1;
    else if(square[3]==square[5]&&square[5]==square[7])
        return 1;
    else if(square[1]!='1'&&square[2]!='2'&&square[3]!='3'&&
            square[4]!='4'&&square[5]!='5'&&square[6]!='6'&&
            square[7]!='7'&&square[8]!='8'&&square[9]!='9')
        return 0;
    else return -1;
}
int main()
{
    int choice,i;
    char mark;
    char a[10],b[10];
    int player=1;
    cout<<"\t***Welcome to tic toe Game***";
    cout<<"\nEnter player name= ";
    cin>>a>>b;
    cout<<"\n player 1= "<<a<<"\nplayer 2= "<<b;
    do
    {
        board();
        player=(player%2)?1:2;
        mark=(player==1)?'x':'o';
        cout<<"\nPlayer= "<<player;
        cout<<"\nEnter pos= ";
        cin>>choice;
        if(choice==1&&square[1]=='1')
        square[1]=mark;
        else if(choice==2&&square[2]=='2')
        square[2]=mark;
        else if(choice==3&&square[3]=='3')
        square[3]=mark;
        else if(choice==4&&square[4]=='4')
        square[4]=mark;
        else if(choice==5&&square[5]=='5')
        square[5]=mark;
        else if(choice==6&&square[6]=='6')
        square[6]=mark;
        else if(choice==7&&square[7]=='7')
        square[7]=mark;
        else if(choice==8&&square[8]=='8')
        square[8]=mark;
        else if(choice==9&&square[9]=='9')
        square[9]=mark;
        else
        {
        cout<<"***Invalid pos***";
        --player;
        cin.ignore();//In build function
        cin.get();//In build function gives one more chance
        }
        i=checkwin();
        player++;
    }while(i==-1);
    board();
    if(i==1)
    {
        --player;
        if(player--==1)
        {
            cout<<"\n**** Player "<<a<<" win ;) ****";
            cout<<"\n**** Player "<<b<<" loss :( ****";
        }
        else
            {
            cout<<"\n**** Player "<<b<<" win ;) ****";
            cout<<"\n**** Player "<<a<<" loss :( ****";
            }
        }
        //cout<<"\nplayer"<<--player<<" win";
    else
        cout<<endl<<"***Game Draw***";
        cin.ignore();
        cin.get();//Game again
        return 0;
}
here is the tic tac tio in c++
Blauelf
@Blauelf
Nov 30 2017 13:14

@santosh62 I don't think many in Germany know "Ludo", because we have our very similar "Mensch ärgere dich nicht". There's also another similar game Fang den Hut, or Coppit in English

So your tic-tac-toe has no AI. And the only part that's C++ and not C is the input/output. With the setting described in the comment at the top ("mini project"), that sounds reasonable.

Blauelf
@Blauelf
Nov 30 2017 13:41
@santosh62 The Ludo/Eile mit Weile/Mensch ärgere dich nicht thing is just about copyright, you couldn't just sell an identical clone if you don't own the rights, so they are more like siblings.
Nazzal Naseer
@enemen101
Nov 30 2017 13:59
@bradtaniguchi well, the svg icons just won't show up on the page. I've linked to them correctly and yet they won't show up
Santosh Vijapure
@santoshvijapure
Nov 30 2017 14:23
@Blauelf
I can expalin u avry single line of tht code
Its not a copy
Its a assignment givn fo me in second year
Blauelf
@Blauelf
Nov 30 2017 14:30
@santosh62 Sure, I never thought of that being copied from someone else. I just was overly excited and expected a complex programme, maybe with an AI (minimax or just a decision tree). Yet this was not the goal of the assignment. You fulfilled your assignment with a very short programme that would be valid C with only minor changes.
Santosh Vijapure
@santoshvijapure
Nov 30 2017 14:36
But whn u knw the simple way thn y ull try coplex one
Blauelf
@Blauelf
Nov 30 2017 14:40
Is that Ludo also an assignment, or are you exploring the possibilities?
Santosh Vijapure
@santoshvijapure
Nov 30 2017 14:56
Na im tried but i hav to drow lines n all n idk how to manag tht in cpp

// Example
var ourArr = [ 9, 10, 11, 12];
var ourTotal = 0;

for (var i = 0; i < ourArr.length; i++) {
  ourTotal += ourArr[i];
}
alert(ourTotal);

// Setup
var myArr = [ 2, 3, 4, 5, 6];

// Only change code below this linv
var total = 0;
for(var i = 0; i < myArr.length; i++){
  total += myArray[i];
}
alert(total);
Why is my total equal to 25 instead of 20 in this? I did it exactly like the example from what I can tell
Kaz Baig
@kbaig
Nov 30 2017 16:10
@karinafarina not sure about the numbers but the operation in your loop is referring to myArray, which doesn't exist
Blauelf
@Blauelf
Nov 30 2017 16:26
I'd expect NaN in this case, not 25. Unless myArray in some way does exist. But where?
Kaz Baig
@kbaig
Nov 30 2017 16:29
I would expect just a ReferenceError but yeah
karinafarina
@karinafarina
Nov 30 2017 16:33
weird. but thanks for pointing that out
Blauelf
@Blauelf
Nov 30 2017 16:35
@kbaig Oh, you're right, if myArray doesn't exist at all, it should throw that one. I somehow thought of a non-array in its place, which I've seen frequently (because a function that used to return an array returned an error code instead).
Kaz Baig
@kbaig
Nov 30 2017 16:39
ah gotcha
karinafarina
@karinafarina
Nov 30 2017 16:53
https://beta.freecodecamp.org/en/challenges/basic-javascript/nesting-for-loops
This is what I have tried
function multiplyAll(arr) {
  var product = 1;
  // Only change code below this line
  for(i = 0; i>arr.length;i++) {
    for(j=0; j> arr[i].length;j++) {
      return product * arr[i][j];
    }
  }
  // Only change code above this line
  return product;
}

// Modify values below to test your code
multiplyAll([[1,2],[3,4],[5,6,7]]);
alpox
@alpox
Nov 30 2017 16:54
@karinafarina If you return inside of a for, you leave the loops AND the function immediately at that point. The * operation happens only once - the result is passed as result out of the function.
karinafarina
@karinafarina
Nov 30 2017 16:55
function multiplyAll(arr) {
  var product = 1;
  // Only change code below this line
  for(i = 0; i>arr.length;i++) {
    for(j=0; j> arr[i].length;j++) {
      product *= arr[i][j];
    }

  }
  // Only change code above this line
  return product;
}

// Modify values below to test your code
multiplyAll([[1,2],[3,4],[5,6,7]]);
alpox
@alpox
Nov 30 2017 16:57
@karinafarina Looks good. But please initialize your variables i and j with var otherwise they will be global variables, instead of local ones
Kaz Baig
@kbaig
Nov 30 2017 16:57
@karinafarina ie for (var i = 0....)
karinafarina
@karinafarina
Nov 30 2017 16:57
oh right
alpox
@alpox
Nov 30 2017 16:58
@karinafarina You may have to reload the website after that - the global variables may stick around because you once defined them like this
karinafarina
@karinafarina
Nov 30 2017 16:59

function multiplyAll(arr) {
  var product = 1;
  // Only change code below this line
  for(var i = 0; i>arr.length;i++) {
    for( var j=0; j> arr[i].length;j++) {
      product *= arr[i][j];
    }
  }
  // Only change code above this line
  return product;
}

// Modify values below to test your code
multiplyAll([[1,2],[3,4],[5,6,7]]);
I reloaded but it's not working
alpox
@alpox
Nov 30 2017 17:00
@karinafarina I just noticed - your condition is the wrong way around. The for loop runs as long as the condition HOLDS.
So you now test if i is bigger than arr.length which is of course false right at the beginning. The loop never gets entered.
karinafarina
@karinafarina
Nov 30 2017 17:01
I see, thank you @alpox !!
CamperBot
@camperbot
Nov 30 2017 17:01
karinafarina sends brownie points to @alpox :sparkles: :thumbsup: :sparkles:
:star2: 1471 | @alpox |http://www.freecodecamp.org/alpox
alpox
@alpox
Nov 30 2017 17:01
@karinafarina np :)
karinafarina
@karinafarina
Nov 30 2017 17:08
Will someone walk me through this statement and explain what everything refers to?
"The function should check if name is an actual contact's firstName and the given property (prop) is a property of that contact."
Here is the 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(name, prop){
// Only change code below this line
  if(name === contacts["firstName"] && prop === )
// Only change code above this line
}

// Change these values to test your function
lookUpProfile("Akira", "likes");
Kaz Baig
@kbaig
Nov 30 2017 17:09
they want you to check if any object in that contacts array has the firstName you're looking for
karinafarina
@karinafarina
Nov 30 2017 17:09
the if statement is mine, and I am not sure if I amonthe right track
Kaz Baig
@kbaig
Nov 30 2017 17:09
and if an object does, check if they have the property you're looking for
karinafarina
@karinafarina
Nov 30 2017 17:11
When I think I am about to understand, I get stumped
Is this part right?
if(name === contacts["firstName"]
Kaz Baig
@kbaig
Nov 30 2017 17:12
no for a few reasons
one is that it's an contacts is an array
karinafarina
@karinafarina
Nov 30 2017 17:13
I am trying to go through and understand each part
Kaz Baig
@kbaig
Nov 30 2017 17:13
so it doesn't have a property called firstName
The objects within the array do have that property
karinafarina
@karinafarina
Nov 30 2017 17:14
I see
Kaz Baig
@kbaig
Nov 30 2017 17:14
so you want to look through each object, checking your tests
karinafarina
@karinafarina
Nov 30 2017 17:14
so I needto loop through the array
Kaz Baig
@kbaig
Nov 30 2017 17:14
that's one way yeah
karinafarina
@karinafarina
Nov 30 2017 17:14
how do I check my tests?
Kaz Baig
@kbaig
Nov 30 2017 17:14
meaning using if statements
karinafarina
@karinafarina
Nov 30 2017 17:21

for(var i = 0; i < contacts.length; i ++){
if(name === contacts[i].firstName) {

}

I need help step by step to see if my thinking is correct. I've got to get this
Kaz Baig
@kbaig
Nov 30 2017 17:27
well what steps do you think you should be taking
like in english
karinafarina
@karinafarina
Nov 30 2017 17:27
function lookUpProfile(name, prop){
// Only change code below this line
  for(var i = 0; i < contacts.length; i ++){
    if(name === contacts[i].firstName && prop == contacts[i]) {
    return prop;
    }
  }
// Only change code above this line
}

// Change these values to test your function
lookUpProfile("Akira", "likes");
So, i am looping through all of the objects in the array contacts
then i am checking if the name is any of the firstName's in each of those objects
and if the prop is a property in those objects
and if both are true, I am returning the prop
so I am checking if "Akira is one of first names in any of the objects in contacts
and if "likes" is a property in any of the objects in contacts
and then if it is I am returning "likes"
Am I understanding this correctly?
Kaz Baig
@kbaig
Nov 30 2017 17:32
Well two problems
First is that you're ignoring 2/3 of the cases, ie if the contact name doesn't exist at all and also if the contact name exists but the prop doesn't
Second is that you're not supposed to return the prop, you're supposed to return the value in the prop
function getProp (obj, prop) {
  return prop;
}

getProp({ name: 'Kaz' } , 'name'); // 'name'
karinafarina
@karinafarina
Nov 30 2017 17:34
Ok, but I am trying to make sure that I am understanding each step before moving on to the next
So is what id did before correct so far?
Kaz Baig
@kbaig
Nov 30 2017 17:35
No
see second problem I mentioned
karinafarina
@karinafarina
Nov 30 2017 17:35
All of it?
so just the return part
Please, is is this part making sense and correct?
for(var i = 0; i < contacts.length; i ++){
if(name === contacts[i].firstName && prop == contacts[i]) {
I can't seem to grasp this
karinafarina
@karinafarina
Nov 30 2017 17:41
I understand what you are saying about returning the prop @kbaig but don't know how to return the value in the prop
function lookUpProfile(name, prop){
// Only change code below this line
  for(var i = 0; i < contacts.length; i ++){
    if(name === contacts[i].firstName && prop == contacts[i]) {
    return prop[name];
    }
  }
// Only change code above this line
}

// Change these values to test your function
lookUpProfile("Akira", "likes");
I know this isn't right
Kaz Baig
@kbaig
Nov 30 2017 17:42
@karinafarina you access a value in the prop of an object by doing object.property
so in the function I wrote above, you'd return the value but changing the line to return obj.prop
karinafarina
@karinafarina
Nov 30 2017 17:43
so, contacts.prop?
or contacts[i].prop?
Kaz Baig
@kbaig
Nov 30 2017 17:44
yes
second one
contacts is an array
it doesn't have the prop you're passing in
karinafarina
@karinafarina
Nov 30 2017 17:45
How does the function know that name refers to "firstName" and prop refers to property in contacts?
Nevermind
I get that it refers to the name and property passed to it
but still not sure how it knows to
Kaz Baig
@kbaig
Nov 30 2017 17:49
Don't know what you mean
karinafarina
@karinafarina
Nov 30 2017 17:53
function lookUpProfile(name, prop){
// Only change code below this line
  for(var i = 0; i < contacts.length; i ++){
    if(name === contacts[i].firstName && prop == contacts[i]) {
    return contacts[i].prop;
    } else if(name !== contacts[i].firstName) {
      return "No such contact";
    } else if( prop !== contact[i].name) {
      return "No such property";
    }
   }
  }
// Only change code above this line
}

// Change these values to test your function
lookUpProfile("Akira", "likes");
So I think the problem here is the last else if statement
karinafarina
@karinafarina
Nov 30 2017 18:01
Ok, so I had an aha moment
function lookUpProfile(name, prop){
// Only change code below this line
  for(var i = 0; i < contacts.length; i ++){
    if(name === contacts[i].firstName && prop == contacts[i]) {
    return contacts[i].prop;
    } else if(name !== contacts[i].firstName) {
      return "No such contact";
    } else if( prop !== contact[i]) {
      return "No such property";
    }
   }
  }
// Only change code above this line
}

// Change these values to test your function
lookUpProfile("Akira", "likes");
I think I amunderstanding something Ididn't before but still not passing
Blauelf
@Blauelf
Nov 30 2017 18:04
@karinafarina If there's a line of people, and you know that the first person is not "Carl", do you know there's no "Carl" in the line?
Christopher McCormack
@cmccormack
Nov 30 2017 18:04
@karinafarina I believe you need to check for the property only if the contact firstname does match but you don't have a condition for that
@karinafarina also your return statement is using dot lookup but that will only work for the actual property name ( like obj.firstName )
for variables use bracket notation
karinafarina
@karinafarina
Nov 30 2017 18:05
ahhh
Blauelf
@Blauelf
Nov 30 2017 18:06
@karinafarina Maybe you should review Testing Objects for Properties
karinafarina
@karinafarina
Nov 30 2017 18:07
I will do that @Blauelf , thank you
CamperBot
@camperbot
Nov 30 2017 18:07
karinafarina sends brownie points to @blauelf :sparkles: :thumbsup: :sparkles:
:star2: 4660 | @blauelf |http://www.freecodecamp.org/blauelf
Christopher McCormack
@cmccormack
Nov 30 2017 18:07
@karinafarina @Blauelf agreed and also here is short example I made that should cover the different scenarios:
> var object = { 'a': 'apple', 'b': 'banana' }
> object
{ a: 'apple', b: 'banana' }
> object.a // <= same as object['a'].  a is an actual property name in object
'apple'
> object['a'] // <= 'a' is a string literal
'apple'
> object[a] // <= a is a variable that was never declared
undefined
> var test = 'a'
> object[test] // <= test is a variable that was declared and assigned the string 'a'
'apple'
> object.test
undefined
Jason Luboff
@JLuboff
Nov 30 2017 18:10
@cmccormack :wave:
Christopher McCormack
@cmccormack
Nov 30 2017 18:10
@JLuboff hey papa how's it going?
Jason Luboff
@JLuboff
Nov 30 2017 18:11
@cmccormack Not bad at all. Needed to jump on the computer to handle a few things. :baby: :zzz:
You?
Christopher McCormack
@cmccormack
Nov 30 2017 18:12
Just started my vacation so sitting in Starbucks coding my voting app
Pretty much the opposite of you :)
Jason Luboff
@JLuboff
Nov 30 2017 18:12
:D I'm sort of on vacation too lol
Christopher McCormack
@cmccormack
Nov 30 2017 18:13
would you call it vacation though? haha
Jason Luboff
@JLuboff
Nov 30 2017 18:13
Ya...I don't haveto work for 3.5 weeks...thats a vacation to me. The baby is an added bonus to it ;)
Amit Patel
@AmitP88
Nov 30 2017 18:14
hey guys, I'm learning how to build React applications through a Udemy course, and I've decided that I want my first React app to be a resume builder app (since I hate writing resumes). However, I've noticed online that there are loads of resume builders (one good one I've seen is resumegenius.com). Would it still be worth the time to build my resume builder app? or should I try to build something else instead? (I've drawn wireframes for my app today)
Christopher McCormack
@cmccormack
Nov 30 2017 18:14
@JLuboff that's pretty great
@AmitP88 build whatever you want! It doesn't matter if something already exists if you're just trying to play with the tech
@AmitP88 if you have something unique to make, all the better
Amit Patel
@AmitP88
Nov 30 2017 18:15
@cmccormack ah ok, I was just wondering about what employers would think, but they would understand, right? lol
Ronique Ricketts
@RoniqueRicketts
Nov 30 2017 18:16
My project that I just tried to export in glitch is not showing up on github
Christopher McCormack
@cmccormack
Nov 30 2017 18:16
@AmitP88 Giving it your own flavor by doing something unique couldn't hurt, but I'm not a hiring manager so take my advice accordingly
@RoniqueRicketts :wave:
@RoniqueRicketts did you provide your github credentials? I'll be honest I've never done it in that direction
Ronique Ricketts
@RoniqueRicketts
Nov 30 2017 18:17
@cmccormack hey Christopher
Amit Patel
@AmitP88
Nov 30 2017 18:17
@cmccormack I guess one thing about my app that might be unique would be that the user would be able to save multiple resumes and then filter through them through various search terms
Ronique Ricketts
@RoniqueRicketts
Nov 30 2017 18:17
@cmccormack yes i I have
Amit Patel
@AmitP88
Nov 30 2017 18:17
@cmccormack I guess it doesn't really matter since I'm just trying to get the experience of making a complete app from start to finish using React
Christopher McCormack
@cmccormack
Nov 30 2017 18:17
@AmitP88 I imagine if it works and you can explain all the code it would impress the interviewer enough
Amit Patel
@AmitP88
Nov 30 2017 18:18
@cmccormack ah ok. I mean, it would be for a junior position afterall
Christopher McCormack
@cmccormack
Nov 30 2017 18:18
@RoniqueRicketts I wouldn't recommend exporting to github, not sure how your history would be affected by that
Ronique Ricketts
@RoniqueRicketts
Nov 30 2017 18:19
@cmccormack so how would I get the code on github
Christopher McCormack
@cmccormack
Nov 30 2017 18:19
@RoniqueRicketts normally you would create the repo on github first, then clone it locally or on some server, make changes, then commit and push those changes to github. Then you can import your github code to glitch
Ronique Ricketts
@RoniqueRicketts
Nov 30 2017 18:22
well that's too much work I started the project on glitch first :(
Christopher McCormack
@cmccormack
Nov 30 2017 18:22
@RoniqueRicketts hmm when you export it appears it pushes it to a glitch branch on github
so try switching branches
that makes more sense, because then you can just merge that branch into master
Jason Luboff
@JLuboff
Nov 30 2017 18:23
@RoniqueRicketts It sends it as a pull request, you need to merge it on github
or is it a different branch?
Ronique Ricketts
@RoniqueRicketts
Nov 30 2017 18:25
@JLuboff do I now have to create a repo on github?
Jason Luboff
@JLuboff
Nov 30 2017 18:26
You have to have already had the repo I think. I've only ever exported to an existing repo
Ronique Ricketts
@RoniqueRicketts
Nov 30 2017 18:27
@JLuboff ok so I shall start over then
Christopher McCormack
@cmccormack
Nov 30 2017 18:30
if you haven't created a repo you should be able to create one now then export to it, it asks for your username/reponame when you export
just make sure you add a file after you create it, README.md is fine
image.png
karinafarina
@karinafarina
Nov 30 2017 18:55
Ok, I am getting there but not there yet
function lookUpProfile(name, prop){
// Only change code below this line
  for(var i = 0; i < contacts.length; i ++){
    if(name === contacts[i].firstName && contacts[i].hasOwnProperty(prop)) {
    return contacts[i][prop];
    } else if(name !== contacts[i].firstName) {
      return "No such contact";
    } else if(contacts[i].hasOwnProperty(prop) == false) {
      return "No such property";
    }
   }

// Only change code above this line
}

// Change these values to test your function
alert(lookUpProfile("Kristian", "lastName"));
Christopher McCormack
@cmccormack
Nov 30 2017 18:57
:point_up: November 30, 2017 11:04 AM @karinafarina
@karinafarina I would suggest not using a compound conditional in this project, and instead using nested conditionals
karinafarina
@karinafarina
Nov 30 2017 19:09
So @cmccormack should I start over from scratch?
Stephen James
@sjames1958gm
Nov 30 2017 19:10
@karinafarina return ends the function immediately, so if the first entry doesn't match on first name you will never test the second
Christopher McCormack
@cmccormack
Nov 30 2017 19:10
@karinafarina no I'm not saying that, just layout your conditionals within your loop a little differently
draw it out like a decision tree then implement
karinafarina
@karinafarina
Nov 30 2017 19:10
My brain is barely hanging on by a thread
@sjames1958gm what should I use instead of return?
Diego Mayer
@Chrono79
Nov 30 2017 19:12
@karinafarina order the logic
so you won't return in all cases
Stephen James
@sjames1958gm
Nov 30 2017 19:15
@karinafarina You cannot return "No such contact" until you have tested every contact.
Inside your loop you should only return if you match the contact firstName
karinafarina
@karinafarina
Nov 30 2017 19:15
oh
I thought having the if statement inside the loop was doing that
Christopher McCormack
@cmccormack
Nov 30 2017 19:17
@karinafarina only for the first contact
karinafarina
@karinafarina
Nov 30 2017 19:20
So how do I loop through them all?
Ronique Ricketts
@RoniqueRicketts
Nov 30 2017 19:20
@cmccormack its still not working out for me
Stephen James
@sjames1958gm
Nov 30 2017 19:20
@karinafarina Not all your code has to be in the loop.
Bryan Reese
@breese8009
Nov 30 2017 19:55
hello!
whats goin on JSers
Mark White
@s3venvials
Nov 30 2017 19:57
Not a whole lot
Kaz Baig
@kbaig
Nov 30 2017 19:59
@breese8009 :wave:
Bryan Reese
@breese8009
Nov 30 2017 19:59
@kbaig :wave:
Kaz Baig
@kbaig
Nov 30 2017 20:00
Man I haven't actually made any progress writing code in weeks
Now that my new job is at a full workload, how do I get the energy to do things after work?
Henry
@GitHub-Henry
Nov 30 2017 20:02
@kbaig schedule it like a 2nd job same place and time, you gotta have the want to in order to make it happen
for me a bit of exercise before coding helps when i'm tired
Kaz Baig
@kbaig
Nov 30 2017 20:04
@GitHub-Henry that would just make me wanna sleep lol
Only when you leave school do you realize discipline is actually a hard thing to consistently implement
Mark White
@s3venvials
Nov 30 2017 20:05
Try having a 19 month old and focus on coding! lol
Jason Luboff
@JLuboff
Nov 30 2017 20:05
@kbaig I dont lol. I do it all during work...or maybe a little on weekends
Henry
@GitHub-Henry
Nov 30 2017 20:06
@JLuboff not working at work, state job?
Jason Luboff
@JLuboff
Nov 30 2017 20:06
@GitHub-Henry No, not state job...but technically it is working as I'm going to be taking over the DBA/programmer role
and i'm not doing it in place of work
Henry
@GitHub-Henry
Nov 30 2017 20:07
@JLuboff nice to be able to combine
Jason Luboff
@JLuboff
Nov 30 2017 20:07
Yup!
Kaz Baig
@kbaig
Nov 30 2017 20:07
My current workload makes me feel like I'm going to need to double my work hours to get things done in the expected timeframe so that's not much of an option :(
Henry
@GitHub-Henry
Nov 30 2017 20:08
interview question, what's the work life balance like?
Kaz Baig
@kbaig
Nov 30 2017 20:09
@GitHub-Henry Oh I asked several interviewers for this job that question but evidently didn't get an accurate response
Mark White
@s3venvials
Nov 30 2017 20:09
Since this room is more active than the node.js room. Would it be appropriate to ask if anyone can assist with getting the jQuery ui autocomplete plugin to work with mongoDB? So instead of pulling from a local .js file I want the search terms to be pulled from one of my collections in a local mongoDB. I have a github repo if it helps
Henry
@GitHub-Henry
Nov 30 2017 20:10
@kbaig bummer
Kaz Baig
@kbaig
Nov 30 2017 20:10
It's also my first job and one that is giving me a potential chance to stay in the country, so not sure if I have all that many options for now
Jason Luboff
@JLuboff
Nov 30 2017 20:13
@s3venvials you would need to send the array to your front end either via template engine or ajax call or something along those lines
Mark White
@s3venvials
Nov 30 2017 20:14
Yeah im using express with ejs
I was looking into using ajax but all the examples I see are used with php or with a local json file with an array
im still a noob to back end coding
I have the route set up to find all the data in the collection and on the front end I use a for each loop to retrieve it. But I need to find a way for it to function with the autocomplete plug or something like it.
I thought id make it easy and loop to a datalist html element and it works great in firefox but chrome and IE not so much.
Jason Luboff
@JLuboff
Nov 30 2017 20:23
I haven't used the jquery autocomplete so I'm not familar with it
but it sounds like you're on the right track lol
Mark White
@s3venvials
Nov 30 2017 20:24
Yeah I feel like its something simple but I cant seem to wrap my head around it but ill keep searching
Tiago Correia
@tiagocorreiaalmeida
Nov 30 2017 20:37
hello everyone
alpox
@alpox
Nov 30 2017 20:39
@tiagocorreiaalmeida Hiho
Tiago Correia
@tiagocorreiaalmeida
Nov 30 2017 20:44
how are you today ?:D
alpox
@alpox
Nov 30 2017 20:46
@tiagocorreiaalmeida Good i guess :D
And you?
Tiago Correia
@tiagocorreiaalmeida
Nov 30 2017 20:48
a bit sick but the usual at winter :D
alpox
@alpox
Nov 30 2017 20:48
Ah the typical winter-begin-cold? :D
I already had that one..
Tiago Correia
@tiagocorreiaalmeida
Nov 30 2017 20:48
Im on the second allready ahah
alpox
@alpox
Nov 30 2017 20:48
Oh :D eat some echanicae
Tiago Correia
@tiagocorreiaalmeida
Nov 30 2017 20:50
what's that ?
James Barrett
@jamesbarrett95
Nov 30 2017 20:50
  for (let i = 0; i < userLast6.length; i++) {
    console.log(userLast6[i].accessThisDynamically)
  }
Anyone know how to access a object value dyanamically (as in, I dont know what the name of the key will be)
Kaz Baig
@kbaig
Nov 30 2017 20:51
@jamesbarrett95 use brackets instead of dot notation
alpox
@alpox
Nov 30 2017 20:51
@tiagocorreiaalmeida Its a plant - or plant extract depending on the form in which you take it. It strengthens your strength against colds and flu a lot so you get it much less when you take it each day when you expect you could get one. When you already have it, it also helps to get rid of it better (But don't take as much of it then)
Kaz Baig
@kbaig
Nov 30 2017 20:51
userLast6[i][accessThisDynamically]
alpox
@alpox
Nov 30 2017 20:51
@tiagocorreiaalmeida I usually take it in little pill form which is nothing much else than just compressed plantpowder
James Barrett
@jamesbarrett95
Nov 30 2017 20:52
@kbaig My program is set up such that I don't know what the key will be, so accessThisDynamically could be anything
alpox
@alpox
Nov 30 2017 20:52
@tiagocorreiaalmeida Not sure in what forms you would get it in your country. We have these: https://www.bioforce.ch/de/produkte/arzneimittel/echinaforce-forte.php?_ga=2.109346508.893905031.1512075263-1226488156.1512075263
James Barrett
@jamesbarrett95
Nov 30 2017 20:53
@kbaig How would I access the key? Is there a way to just reference it by index?
Not incredibly maintainable... However I cant think of another solution
Kaz Baig
@kbaig
Nov 30 2017 20:53
@jamesbarrett95 accessThisDynamically will be a string variable right
alpox
@alpox
Nov 30 2017 20:53
@jamesbarrett95 Whenever you need to access a property dynamically, use bracket notation instead of dot notation:
userLast6[i]["something"]
So you can replace "something" with a variable
Which holds a string
Tiago Correia
@tiagocorreiaalmeida
Nov 30 2017 20:56
@alpox first time i'm hearing about it gotta try someday
James Barrett
@jamesbarrett95
Nov 30 2017 20:56
Cool thanks guys @alpox @kbaig
CamperBot
@camperbot
Nov 30 2017 20:56
jamesbarrett95 sends brownie points to @alpox and @kbaig :sparkles: :thumbsup: :sparkles:
:cookie: 466 | @kbaig |http://www.freecodecamp.org/kbaig
:star2: 1472 | @alpox |http://www.freecodecamp.org/alpox
alpox
@alpox
Nov 30 2017 20:56
@tiagocorreiaalmeida Link was wrong, i corrected :D
alpox
@alpox
Nov 30 2017 21:03
@tiagocorreiaalmeida Their page says that it should be available in your country :D maybe check a drugstore if you want to try it
Jess Xuan
@jesskxuan
Nov 30 2017 21:05

hiya, wondering if someone can help… i'm trying to do the closures exercise but receive this error:

addTogether(2)(3);
              ^
TypeError: addTogether(...) is not a function

Am wondering if this is because of the syntax being unusual (im running it through terminal via node <filename>) or if there's an acutal error with my code? basically does this syntax work for people running node through terminal? 😅

alpox
@alpox
Nov 30 2017 21:06
@jesskxuan That syntax works if you make it work ;-) as the error says, addTogether(...) has to be a function - so the call addTogether(...) has to RETURN that function which then can be called with another (...) (In this case (3)
Jess Xuan
@jesskxuan
Nov 30 2017 21:07
@alpox thank you!! just double checking to make sure i'm not about to waste a few more hours debugging code
CamperBot
@camperbot
Nov 30 2017 21:07
jesskxuan sends brownie points to @alpox :sparkles: :thumbsup: :sparkles:
:star2: 1473 | @alpox |http://www.freecodecamp.org/alpox
Tiago Correia
@tiagocorreiaalmeida
Nov 30 2017 22:30
@alpox that will be my first pick next time I need to go into some drugstore :D I always get 5 or 6 tiems sick around this time of the year, boring I started to avoid pills after a while since I took so many before cause of it
Conor Murphy
@cmurphy580
Nov 30 2017 22:58
@sjames1958gm sweet thank you!
CamperBot
@camperbot
Nov 30 2017 22:58
cmurphy580 sends brownie points to @sjames1958gm :sparkles: :thumbsup: :sparkles:
:star2: 8733 | @sjames1958gm |http://www.freecodecamp.org/sjames1958gm
Conor Murphy
@cmurphy580
Nov 30 2017 22:58
If anyone is interested in learning the logic behind the click and toss feature. Check out this article I wrote. Let me know if you have any problems with it, or if you like give me a clap. I'm desperate for the slightest praise. https://medium.com/@cmurphy580/click-and-toss-in-plain-javascript-a8487a5f3331
Kaz Baig
@kbaig
Nov 30 2017 23:05
@cmurphy580 I feel really stupid asking but how is that supposed to function? I'm looking at the last pen and struggling to get it to snap to the next slide correctly
Do I just not understand what it's supposed to do or
Victoria Zambrano
@vzambrano98
Nov 30 2017 23:09
hey guys how we doing? Got a weird question, has anyone ever not had anything pop-up in the console log? I can see it says that some things are hidden (i.e. everything) but I can't figure out how to show them
Kaz Baig
@kbaig
Nov 30 2017 23:10
@vzambrano98 can you screenshot?
Victoria Zambrano
@vzambrano98
Nov 30 2017 23:11
that is going to take a sec for me to figure out lol! give me just a moment @kbaig
screenshot.PNG
Kaz Baig
@kbaig
Nov 30 2017 23:16
@vzambrano98 what happens if you return the value instead of logging it
do you see it in the results box on the left
Victoria Zambrano
@vzambrano98
Nov 30 2017 23:18
oh yeah the returns work. I'm just trying to fix an algo and I'm trying to use my console to figure out where it's messing up
Kaz Baig
@kbaig
Nov 30 2017 23:19
tbh it's been too long since I last did an algo on fcc
hmm logging to the console seems to be working fine for me
have you tried refreshing the page and/or clearing localStorage @vzambrano98
Victoria Zambrano
@vzambrano98
Nov 30 2017 23:24
@kbaig no, i guess i could give it a try. How does one clear local storage???
@kbaig lol I will just google it.
Kaz Baig
@kbaig
Nov 30 2017 23:28
@vzambrano98 I tend to just go into localStorage in the dev tools and delete it
there's def a better way tho lol
Victoria Zambrano
@vzambrano98
Nov 30 2017 23:30
yeah, that's just what I did too lol. it didn't work. Idk. maybe it's my computer. I'm gonna try and mess with settings and stuff. I've just never seen this problem before.
i fixed it.....I'm just dumb is all. I accidentally thought that "hide all" button was a button to hide all....nope that's just the setting I had it on
facepalm
thanks for your help @kbaig
CamperBot
@camperbot
Nov 30 2017 23:35
vzambrano98 sends brownie points to @kbaig :sparkles: :thumbsup: :sparkles:
:cookie: 467 | @kbaig |http://www.freecodecamp.org/kbaig
Kaz Baig
@kbaig
Nov 30 2017 23:35
awk
I tried heh
Victoria Zambrano
@vzambrano98
Nov 30 2017 23:36
HAHA