These are chat archives for FreeCodeCamp/HelpJavaScript

27th
Mar 2018
Greg Duncan
@GregatGit
Mar 27 2018 07:35
I have an object full of objects and I'm trying to add a new object but I can't get the name of the object add to be a variable (or in this case the name property in the ingredient
import _ from 'lodash'
const data = [
    {
        "name": "cake",
        "ingredients": [
            "eggs",
            "flour",
            "butter"
        ]
    },
    {
        "name": "jam",
        "ingredients": [
            "strawberries",
            "sugar"
        ]
    },
    {
        "name": "cornflakes",
        "ingredients": [
            "milk",
            "cornflakes"
        ]
    }
]
const extra = {
        name: "cookies",
        ingredients: [
            "flour",
            "sugar"
        ]
    }
const recipes = _.mapKeys(data, 'name')

const newRecipes = _.assign(recipes, {extra})
console.log(newRecipes)
// output
{ cake: { name: 'cake', ingredients: [ 'eggs', 'flour', 'butter' ] },
  jam: { name: 'jam', ingredients: [ 'strawberries', 'sugar' ] },
  cornflakes: { name: 'cornflakes', ingredients: [ 'milk', 'cornflakes' ] },
  extra: { name: 'cookies', ingredients: [ 'flour', 'sugar' ] }
 }
// how to make extra say 'cookies' with out hardcoding it
alpox
@alpox
Mar 27 2018 07:41
@GregatGit you cannot create variables with dynamic name in js if thats ehat you want
Greg Duncan
@GregatGit
Mar 27 2018 07:48
thanks for looking @alpox - but I think i found a work around recipes[extra.name] = extra
CamperBot
@camperbot
Mar 27 2018 07:48
gregatgit sends brownie points to @alpox :sparkles: :thumbsup: :sparkles:
:star2: 1592 | @alpox |http://www.freecodecamp.org/alpox
abraham anak agung
@padunk
Mar 27 2018 09:33
can we use spread operator on object?
Stephen James
@sjames1958gm
Mar 27 2018 09:35
@GregatGit You, I believe, can do this as well.
const newRecipes = _.assign(recipes, {[extra.name]: extra}) this allows the use of a variable for the property name
@padunk yes.
abraham anak agung
@padunk
Mar 27 2018 09:39
@sjames1958gm ok, thanks. cause repl.it said syntax error.
CamperBot
@camperbot
Mar 27 2018 09:39
padunk sends brownie points to @sjames1958gm :sparkles: :thumbsup: :sparkles:
:star2: 9136 | @sjames1958gm |http://www.freecodecamp.org/sjames1958gm
Stephen James
@sjames1958gm
Mar 27 2018 09:39
@padunk You might have to have some settings to allow that modern syntax
abraham anak agung
@padunk
Mar 27 2018 09:40
@sjames1958gm i think so, is that ES 6 too?
Stephen James
@sjames1958gm
Mar 27 2018 09:42
@padunk Actually, it is not even ES6 but the next version (officially), but it is implemented in babel, and other transpilers, but it isn't in my version of chrome
abraham anak agung
@padunk
Mar 27 2018 09:45
@sjames1958gm ooo, got it. :+1:
Stephen James
@sjames1958gm
Mar 27 2018 09:47
@padunk :+1:
abraham anak agung
@padunk
Mar 27 2018 09:49
@sjames1958gm do you know how to write LinkedList in JS?
Stephen James
@sjames1958gm
Mar 27 2018 09:58
@padunk I haven't done one before
The functions they have you make for the linked list are a little contrived for the sake of practice but you do get a good working idea of how to make one
Can anyone help me with my calculator? I've got a span inside a div, using the div for styling as a button. I have an event listener attached to the div but when I click the span the click event is firing on the span not the div
I have created this structure before and not had this issue, event.target was always the div. But now the span is coming through instead if I click the text in it.
abraham anak agung
@padunk
Mar 27 2018 10:11
@NJM8 Thank you for the link, i will take a look.
CamperBot
@camperbot
Mar 27 2018 10:11
padunk sends brownie points to @njm8 :sparkles: :thumbsup: :sparkles:
:cookie: 368 | @njm8 |http://www.freecodecamp.org/njm8
Nate Mallison
@NJM8
Mar 27 2018 10:15
sure thing, great content in there
My calculator is here, you can see in the console if you click a number it logs the span, if you click the box around it, it will log the div
It should only log the div as that is what the event listener is attached to
Stephen James
@sjames1958gm
Mar 27 2018 10:19
@NJM8 event.target is the actual clicked element event.currentTarget is the element to which the handler was attached
Nate Mallison
@NJM8
Mar 27 2018 10:21
ohhh, I knew there was something I was missing
thanks @sjames1958gm
CamperBot
@camperbot
Mar 27 2018 10:22
njm8 sends brownie points to @sjames1958gm :sparkles: :thumbsup: :sparkles:
:star2: 9137 | @sjames1958gm |http://www.freecodecamp.org/sjames1958gm
Stephen James
@sjames1958gm
Mar 27 2018 10:22
@NJM8 :+1: Some secret sauce :)
Nate Mallison
@NJM8
Mar 27 2018 10:23
I got all my styling to work but the JS is really, ugly, I need to clean it up but couldn't do it without the actual targer
Nate Mallison
@NJM8
Mar 27 2018 10:41
@sjames1958gm Turned this nonsense:
    if (event.target.nodeName === 'DIV') {
      event.target.classList.remove('active');
      event.target.classList.remove('slantedActive');
      event.target.childNodes[0].classList.remove('slantedContentActive');
      event.target.classList.remove('buttonDefaultActive');
      event.target.classList.add('slanted');
      event.target.childNodes[0].classList.add('slantedContent');
      event.target.classList.add('buttonDefault');
    } else {
      event.target.parentNode.classList.remove('slantedActive');
      event.target.classList.remove('slantedContentActive');
      event.target.parentNode.classList.remove('buttonDefaultActive');
      event.target.parentNode.classList.remove('active');
      event.target.parentNode.classList.add('slanted');
      event.target.classList.add('slantedContent');
      event.target.parentNode.classList.add('buttonDefault');
    }
into this:
    event.currentTarget.classList.remove('buttonActive');
    event.currentTarget.classList.add('button');
and was able to combine three css classes
so much for my number of lines bonus today. :smile:
Hamza Shezad
@hamzashezad
Mar 27 2018 10:51
so i got somewhere with smallest common multiple since yesterday. still not there yet. i can't seem to get it right with large numbers. here's my code. i'd be grateful if i could get any help. gives 156 for [1, 13] rather than 360360
function gcd(a, b) {
  let r = a % b

  while (r !== 0) {
    r = a % b
    let q = Math.floor(a / b)

    a = b
    b = r
  }

  return a
}

function getLCM(a, b) {
  return (a * b) / gcd(a, b)
}

function multiGCD(arr) {
  let result = arr[0]
  for (let i = 1; i < arr.length; i++) {
    result = gcd(result, arr[i])
  }

  return result
}

function multiLCM(arr) {
  let result = arr[0]
  for (let i = 1; i < arr.length; i++) {
    result = getLCM(result, arr[i])
  }
  return result
}

console.log(multiLCM([1, 13])) // 156
Stephen James
@sjames1958gm
Mar 27 2018 10:53
@NJM8 lines of code is like golf - lower is better :)
@hamzashezad because you are only doing 1 and 13 and not 1, 2, 3 ... 13
@hamzashezad Even that should have been 13 not 156
Hamza Shezad
@hamzashezad
Mar 27 2018 10:56
o sorry. forgot an important edit. here it is:
function multiLCM(arr) {
  const numbers = generateNumbers(Math.min(...arr), Math.max(...arr))
  let result = numbers[0]
  for (let i = 1; i < numbers.length; i++) {
    result = getLCM(result, numbers[i])
  }
  return result
}

function generateNumbers(min, max) {
  let numbers = []
  for (let i = min; i <= min * max; i++) {
    numbers.push(i);
  }

  return numbers;
}
Nate Mallison
@NJM8
Mar 27 2018 10:57
@sjames1958gm yeah for sure, up too a point, some people get crazy with code golfing
Stephen James
@sjames1958gm
Mar 27 2018 10:57
@NJM8 true
@hamzashezad I don't think your gcd calculation is correct. Have you tried it alone to make sure it works?
Hamza Shezad
@hamzashezad
Mar 27 2018 10:58
yup. for 1,2,3...13 gcd gives 1. checked it here as well https://www.mathportal.org/calculators/numbers-calculators/gcd-lcm-calculator.php
Stephen James
@sjames1958gm
Mar 27 2018 10:58
@hamzashezad nvm - seems to work
Hamza Shezad
@hamzashezad
Mar 27 2018 10:59
i think it is the lcm
but don't know what is the problem with it
Stephen James
@sjames1958gm
Mar 27 2018 11:03
@hamzashezad For some reason when the numbers are 60 and 6 it resets back to 6 not 60
@hamzashezad Try getLCM(60,6) and you get 6
@hamzashezad gcd(60,6) should be 6 but your code produces 60
Hamza Shezad
@hamzashezad
Mar 27 2018 11:05
huh... i'll check
thanks @sjames1958gm
CamperBot
@camperbot
Mar 27 2018 11:05
hamzashezad sends brownie points to @sjames1958gm :sparkles: :thumbsup: :sparkles:
:star2: 9139 | @sjames1958gm |http://www.freecodecamp.org/sjames1958gm
Nate Mallison
@NJM8
Mar 27 2018 11:11
I'm guessing using eval on the calculator is frowned upon
Markus Kiili
@Masd925
Mar 27 2018 11:13
@NJM8 Yes. Making an expression parser before the calculator is one good way.
Nate Mallison
@NJM8
Mar 27 2018 11:17
@Masd925 but giving malicious hackers control of my website is fun
Markus Kiili
@Masd925
Mar 27 2018 11:18
@NJM8 Eval also has performance problems etc so something else is better.
Jason Luboff
@JLuboff
Mar 27 2018 15:15
Psh.. I used eval on my calculator.. what're going to do, fight me? :joy:
Markus Kiili
@Masd925
Mar 27 2018 15:20
@JLuboff :imp:
Diego Mayer
@Chrono79
Mar 27 2018 15:20
@JLuboff you'll be frowned upon
Jason Luboff
@JLuboff
Mar 27 2018 15:21
And thus I have been frowned upon.. what ever shall I do with myself now?
Markus Kiili
@Masd925
Mar 27 2018 15:21
@JLuboff You can write some clean code.
Jason Luboff
@JLuboff
Mar 27 2018 15:21
Ouch
@Chrono79 @Masd925 Question for you guys if you have a moment?
Diego Mayer
@Chrono79
Mar 27 2018 15:25
Ask away
Jason Luboff
@JLuboff
Mar 27 2018 15:25
Alright!
Diego Mayer
@Chrono79
Mar 27 2018 15:26
The answer isn't guaranteed tho :P
dinesh
@1532j0004kg
Mar 27 2018 15:27
Hihi guys how to display the cities name in drop down box using API can u have any code ? @JLuboff
Jason Luboff
@JLuboff
Mar 27 2018 15:28
So I'm working on a project for work. Part of it is a page with a bunch of action items that needed to be completed. They are assigned to different people, etc. For each item, there is a document that will be uploaded. Right now, I have my backend check for the directory on the file system, and create it if it doesn't exist. Thats all good. What I'm debating on now, and here's my question, if the file already exists, and say they are uploading the same file again (whether it's updated or not), should I have my backend check if the file exists already and if it does, alert the individual to verify if they would like to replace the old file with the new one, or just let it be? @Chrono79
@1532j0004kg I'd imagine you'd want either a database or a JSON file that contains all of the cities and go from there, but its not something I've done before
dinesh
@1532j0004kg
Mar 27 2018 15:29
OK thanks @JLuboff
CamperBot
@camperbot
Mar 27 2018 15:29
1532j0004kg sends brownie points to @jluboff :sparkles: :thumbsup: :sparkles:
:star2: 2381 | @jluboff |http://www.freecodecamp.org/jluboff
Diego Mayer
@Chrono79
Mar 27 2018 15:31
@JLuboff each file is intended for only one user?
Jason Luboff
@JLuboff
Mar 27 2018 15:32
@Chrono79 All users can view the files, but only the person in charge of the action item can upload/update the file associated with their action item
Diego Mayer
@Chrono79
Mar 27 2018 15:32
Ok, then a warning wouldn't hurt
Jason Luboff
@JLuboff
Mar 27 2018 15:33
@Chrono79 Ok thanks, now to figure out how to implement that.. hmm
CamperBot
@camperbot
Mar 27 2018 15:33
jluboff sends brownie points to @chrono79 :sparkles: :thumbsup: :sparkles:
:star2: 4614 | @chrono79 |http://www.freecodecamp.org/chrono79
Nate Mallison
@NJM8
Mar 27 2018 15:42
Hi all, any ideas why I'm getting undefined back from my calculator function?
Screen Shot 2018-03-27 at 11.43.06 AM.png
It is calculating correctly but not sure why I get undefined back when I log the results in execute input
I guess I could just have calculateResults add the answer to the display but I don't like to separate concerns like that
Blauelf
@Blauelf
Mar 27 2018 15:47
Maybe you forgot a return?
JavaScript functions return undefined when they reach the end and haven't returned yet. Also, return; is same as return undefined;, but there's no such thing in your code.
Nate Mallison
@NJM8
Mar 27 2018 15:54
Well the if statement is logging the correct answer, but not sending it back to the caller.
something to do with the recursive function? I feel like I've used this same structure many times
Nate Mallison
@NJM8
Mar 27 2018 16:08
huh, if I put the result in a variable outside the functions it works
got it
I have to return the recursive call or else the copy of the function that provides the input doesn't connect
Nate Mallison
@NJM8
Mar 27 2018 16:14
so actually you were correct
because I wasn't returning it, just not where I thought
Muhammad Hasham
@MohammadHasham
Mar 27 2018 19:20
i am just a bitt confused
do json web tokens (JWT) work the same way as cookies, but they are digitally signed and hence more secure to CSRF attacks? is it right? and is there any other difference?
jusgoose
@gusd773
Mar 27 2018 20:12
anybody know what this means in CSS?
body *,html *{
  box-sizing: border-box;
}
Markus Kiili
@Masd925
Mar 27 2018 20:13
@gusd773 Asking about the selector, declaration, or both?
jusgoose
@gusd773
Mar 27 2018 20:15

@Masd925 well 1) if I'm correct, the body , html means everything in the page? but I thought that was just " * " by itself.

2) yes idk what "box-sizing: border-box; " does either

Markus Kiili
@Masd925
Mar 27 2018 20:18
@gusd773 I would say that targets all descendants of body or html https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Selectors
MDN and google helps on such matters.
FlashHero
@FlashHero
Mar 27 2018 20:20
@Masd925 are you familiar with node mailer?
Markus Kiili
@Masd925
Mar 27 2018 20:20
@FlashHero No, sorry.
Jason Luboff
@JLuboff
Mar 27 2018 20:21
@FlashHero I have limited experience with it
FlashHero
@FlashHero
Mar 27 2018 20:23
@JLuboff was wondering if it's possible for someone to send emails to me, I looked at node mailer configuration and they had the auth object and don't know if it's required or not
Jason Luboff
@JLuboff
Mar 27 2018 20:23
@FlashHero As long as you have an SMTP server for nodemailer to relay through.. I don't see why not
FlashHero
@FlashHero
Mar 27 2018 20:25
@JLuboff so it's possible for someone to send me emails with just their email and not logging in
Jason Luboff
@JLuboff
Mar 27 2018 20:26
@FlashHero You would have to have authentication on the backend to your SMTP server unless your SMTP server does not require authentication. The user themselves don't have to authenticate to anything unless you want them to sign in first toverify their email or something
Gulsvi
@gulsvi
Mar 27 2018 20:28
@gusd773 body * means every descendant of the <body> element. html * means every descendant of the <html> element. That seems redundant to be honest - I haven't seen that before. I'm curious - where did you see it?
FlashHero
@FlashHero
Mar 27 2018 20:28
@JLuboff oh got it thanks
CamperBot
@camperbot
Mar 27 2018 20:28
flashhero sends brownie points to @jluboff :sparkles: :thumbsup: :sparkles:
:star2: 2382 | @jluboff |http://www.freecodecamp.org/jluboff
jusgoose
@gusd773
Mar 27 2018 20:29
@Masd925 thanks
@gulsvi I'm watching a tutorial on how to make a search box.

can anybody tell me how to keep my main text from moving when I resize the window?

https://codepen.io/gusd773/pen/oqowdj

Gulsvi
@gulsvi
Mar 27 2018 20:34
@gusd773 You can give your .mainText class a width and the text will stay centered within that width rather than centered within the width of the window. I guess you could use text-align: left to keep it anchored to the left side of your page as well. Centering text usually makes it move to stay centered.
Christopher McCormack
@cmccormack
Mar 27 2018 20:46
:wave:
Jason Luboff
@JLuboff
Mar 27 2018 20:46
@cmccormack :wave:
Christopher McCormack
@cmccormack
Mar 27 2018 20:49
How goes it?
Jason Luboff
@JLuboff
Mar 27 2018 20:51
eh.. you?
Christopher McCormack
@cmccormack
Mar 27 2018 20:54
eh aint good
I'm alright, super busy lately, almost no free time, but that should be close to over finally!
Jason Luboff
@JLuboff
Mar 27 2018 20:56
Ya eh aint good but what're you going to do. Busy with work?
Christopher McCormack
@cmccormack
Mar 27 2018 20:57
Yeah and traveling and family stuff. This is the first full day I've been home in Flagstaff in two weeks
Jason Luboff
@JLuboff
Mar 27 2018 20:57
That does sound busy
Christopher McCormack
@cmccormack
Mar 27 2018 20:58
Yeah. Still working on your project for work?
Jason Luboff
@JLuboff
Mar 27 2018 21:00
Yup! Haven't done anything on it today though. But learned how to use the FormData api the other day
jusgoose
@gusd773
Mar 27 2018 21:00
@gulsvi width didn't work, it still overlaps the search box when i resize the window veritacally
Gulsvi
@gulsvi
Mar 27 2018 21:01
@gusd773 Give the .mainText a minimum height to prevent that from happening
Christopher McCormack
@cmccormack
Mar 27 2018 21:01
@JLuboff seems like the hotness lately :D
Jason Luboff
@JLuboff
Mar 27 2018 21:01
@cmccormack I only learned of it the other day and was struggling... apparently it's rather diifcult to see the data within it on the frontend via console.log...you need to send it to an endpoint and look at it there
Christopher McCormack
@cmccormack
Mar 27 2018 21:02
I remember tiagocorreiaalmeida was using it recently and yeah you had to peel it apart to see it somehow
was that for uploading files?
jusgoose
@gusd773
Mar 27 2018 21:03
@gulsvi still no go :(
Jason Luboff
@JLuboff
Mar 27 2018 21:05
@cmccormack Ya... I want to be able to use preventDefault and show notifications, etc so I needed a way to upload the form along with the file to my backend which is handling the form file/body with multer
Christopher McCormack
@cmccormack
Mar 27 2018 21:09
Interesting - glad you're able to play with that I've never had the need to upload a file yet so now I can ask you if I do :)
Gulsvi
@gulsvi
Mar 27 2018 21:10
@gusd773 I didn't notice you made your .container absolute positioned - don't do that
Absolute positioning isn't needed for your search box
Jason Luboff
@JLuboff
Mar 27 2018 21:11
@cmccormack Yup! I'll have lots of files uploaded on that page and through testing so far seems to work well
Christopher McCormack
@cmccormack
Mar 27 2018 21:22
You should upload a bunch of Harry Potter Fan Fiction just to confuse future admins @JLuboff :D
Jason Luboff
@JLuboff
Mar 27 2018 21:27
@cmccormack ....becuase thats not wierd.. given...our shared admin account is hpotter :joy:
Tiago Correia
@tiagocorreiaalmeida
Mar 27 2018 21:28
hey there
Christopher McCormack
@cmccormack
Mar 27 2018 21:28
@JLuboff haha
@tiagocorreiaalmeida yo
Jason Luboff
@JLuboff
Mar 27 2018 21:28
hey
Tiago Correia
@tiagocorreiaalmeida
Mar 27 2018 21:29
all good?
Christopher McCormack
@cmccormack
Mar 27 2018 21:29
yeah man how you doing? Make anything interesting lately?
Tiago Correia
@tiagocorreiaalmeida
Mar 27 2018 21:31
all good, yeah I made a thing about music I posted here did you gave it a look? used react and ode
Christopher McCormack
@cmccormack
Mar 27 2018 21:32
don't think I saw it
haven't been around too much lately
Tiago Correia
@tiagocorreiaalmeida
Mar 27 2018 21:32
and started to learn also python, but will give it a break I really wanna build a chat close to gitter
theres a few things to repair tough
Christopher McCormack
@cmccormack
Mar 27 2018 21:37
@tiagocorreiaalmeida very cool
@tiagocorreiaalmeida was that just for fun?
@tiagocorreiaalmeida you can try something like object-fit: cover; on your img tags if you don't want them stretched like that
might cut off some though
@tiagocorreiaalmeida Python is pretty great but you definitely need a good reason to use it before you learn it. It can be pretty boring if you don't have something to apply it to. At least with web dev you get a pretty output of some sort
Tiago Correia
@tiagocorreiaalmeida
Mar 27 2018 21:44
@cmccormack yeah allready was pointed to change it thanks tough will have to eheh, yeah indeed the only use so far I had for it was codefights ahah :D , how about you? anything new?
CamperBot
@camperbot
Mar 27 2018 21:44
tiagocorreiaalmeida sends brownie points to @cmccormack :sparkles: :thumbsup: :sparkles:
:star2: 1382 | @cmccormack |http://www.freecodecamp.org/cmccormack
Christopher McCormack
@cmccormack
Mar 27 2018 21:45
@tiagocorreiaalmeida I was actually brushing up on my python recently as well :) Back to work on my long delayed voting app now though
Tiago Correia
@tiagocorreiaalmeida
Mar 27 2018 21:47
I made a papper rock scissors game that's how far I have gotten ahaha, also gave a look on classes
Christopher McCormack
@cmccormack
Mar 27 2018 21:48
@tiagocorreiaalmeida make a roguelike - this would be a great intro http://www.roguebasin.com/index.php?title=Complete_Roguelike_Tutorial,_using_python%2Blibtcod
Tiago Correia
@tiagocorreiaalmeida
Mar 27 2018 21:58
I sould be doing the fcc one aswell ahaha :D
Christopher McCormack
@cmccormack
Mar 27 2018 21:59
@tiagocorreiaalmeida that one was tough
I suggest using SVG instead of being dumb like me and using tons of divs
Jason Luboff
@JLuboff
Mar 27 2018 22:00
Div div div
jusgoose
@gusd773
Mar 27 2018 22:00
@gulsvi removing the position attribute removes the search box altogther
Christopher McCormack
@cmccormack
Mar 27 2018 22:00
@JLuboff thousands of divs!
Jason Luboff
@JLuboff
Mar 27 2018 22:01
@cmccormack Really? I had a ton of divs for my project until I called myself a dumbass and started using my template engine properly lol
Christopher McCormack
@cmccormack
Mar 27 2018 22:01
although divs did make it kind of easy to do shadowy wall effects
@JLuboff well this was in react so it was just a loop creating tons of divs
not like I manually put them in
Jason Luboff
@JLuboff
Mar 27 2018 22:02
Ah. Well.. ya
Gulsvi
@gulsvi
Mar 27 2018 22:03
@gusd773 That's because of your transform - what are you trying to do with the input and hyperlink? Maybe I can show you a simpler way to achieve it
Christopher McCormack
@cmccormack
Mar 27 2018 22:18
This is cool has anyone used this? https://interviewing.io/
Tiago Correia
@tiagocorreiaalmeida
Mar 27 2018 22:19
uh never but thanks @cmccormack :D
CamperBot
@camperbot
Mar 27 2018 22:19
tiagocorreiaalmeida sends brownie points to @cmccormack :sparkles: :thumbsup: :sparkles:
api offline
Christopher McCormack
@cmccormack
Mar 27 2018 22:20
Just heard it on the FreeCodeCamp podcast, pretty cool
jusgoose
@gusd773
Mar 27 2018 22:36
@gulsvi the hyper link already works/is serving its purpose as intended (open a random wiki article in new tab) and the input is supposed to be a search box for people to search through wikipedias database (thier api I'm assuming)
Gulsvi
@gulsvi
Mar 27 2018 22:37
@gusd773 Yes, I'm wondering how you want it to appear on the page (why the absolute positioning and transforms, for example?). Are you trying to get the link and the search box in the center of the page (horizontal and vertical)?
jusgoose
@gusd773
Mar 27 2018 22:39
@gulsvi I am trying to center the two but they just overlap when I change the height of the window in the editor view via codepen
@gulsvi ideally i'd like their to be a magnifying glass icon that you click to transform into the search box for the user input
@gulsvi yes thank you
Greg Duncan
@GregatGit
Mar 27 2018 23:30
nice one @sjames1958gm ! Thanks
CamperBot
@camperbot
Mar 27 2018 23:30
gregatgit sends brownie points to @sjames1958gm :sparkles: :thumbsup: :sparkles:
:star2: 9141 | @sjames1958gm |http://www.freecodecamp.org/sjames1958gm