Josh Borthick

@JoshBorthick (13)
Repl Talk Rules and Guidelines [README]
posted to Announcements by mat1

"Don't create more accounts for cycles" What does it mean by "cycles" in this particular case?

Repl Talk Rules and Guidelines [README]
posted to Announcements by mat1

@Zavexeon Okie dok, thanks.

🐶Introduce yourself! 🐶
posted to Announcements by katyadee

Hi All,

I'm Josh, a mid-30's welder from OK learning to code. I've taught myself what I can of Python from tutorials, and Ruby from coding boot camp prep courses. Now, I'm moving to Javascript to see what that's all about.

Happy coding.

Method placed inside object, function still doesn't work.
posted to Ask by JoshBorthick

@Zavexeon FYI: While you can access some app content with a free Codecademy account, the majority of Codecademy Go practice and review requires a Codecademy Pro subscription.

...from their website's bot helper.

Was it the regular old codecademy site you found free JS tuts on?

Method placed inside object, function still doesn't work.
posted to Ask by JoshBorthick

@Zavexeon Geez, you're so lucky--growing up in a time when this information is easily available. I'm 33, and have been expected to hurry up and get a job since I was 15.

Internships / Jobs
posted to Ask by AProgrammer

I, too, am interested. I have no degree. I'm self-taught, and have plans to go to college or a bootcamp, but so far have not been able to. I know Python and some Ruby. (as well as HTML/CSS, but who doesn't?)

If anyone has any suggestions, please feel free to email me at:
[email protected]

Edit: I'm in the Tulsa, OK area.

Method placed inside object, function still doesn't work.
posted to Ask by JoshBorthick

@Zavexeon When you say you stayed away from it? Did you already have a job in the tech field, and decided to go back and pick it up at your leisure? I think much of my problems lie in my stressing over not having a job, and having never had a job in the tech field (so no one will give me a job). I'll post another question to ask this of everyone, but I suppose it wouldn't hurt to ask you, specifically.

Do you know of any employment resources that don't require at least an associates degree/bootcamp graduation/3-5 years in the industry? My only experience, outside public forum fast-food/wal-mart is welding and labor jobs. I'm scary close to eviction, but all the remote jobs ask for the above, and non-tech jobs like secret shopper and the like pay next to nothing.

Method placed inside object, function still doesn't work.
posted to Ask by JoshBorthick

@Zavexeon One day.

Edit: Not including the one to two day forays over the past 9 months, such as grasshopper and codecademy.

Method placed inside object, function still doesn't work.
posted to Ask by JoshBorthick

@Zavexeon I learned Python, first, starting a year ago (Udemy tutorial), and the App Academy and Kenzie prep courses both teach Ruby to go along with HTML/CSS. I'm halfway through learning about hashes on a/A's open prep, and it's certainly easier, and works very much like Python's dictionaries and JS's objects. But there's not enough corollary between those two and JS, nothing I've learned there is transferring to learning JS.

I get that I'll need to be able to figure this stuff out on my own, and a job won't give me a template when they give me their assignments, I'm just supposed to already know. But it still feels like I'm expected to know some bachelor of science level stuff before I begin.

Method placed inside object, function still doesn't work.
posted to Ask by JoshBorthick

@Zavexeon Is JS really that much better than Ruby or Python? I really don't care much for making web pages beautiful, that sounds boring.

Method placed inside object, function still doesn't work.
posted to Ask by JoshBorthick

@Zavexeon Oh for god's sake! I refreshed it and it accepts it as the answer now! That is so ridiculously glitchy. Thanks again.

Method placed inside object, function still doesn't work.
posted to Ask by JoshBorthick

@Zavexeon Don't know much about emoticons, beyond :) and ;), and I have no instructor yet, these are supposed to be the easy problems before I even start school! It makes me not trust Lambda since they can't write a decent assignment app.

Thanks for your help, in any case. Maybe someday I'll get it.

Method placed inside object, function still doesn't work.
posted to Ask by JoshBorthick

@Zavexeon what's ^w^?

So, what I've got should work just fine, but the assignment is not accepting it as an answer.

Method placed inside object, function still doesn't work.
posted to Ask by JoshBorthick

@Zavexeon Sorry again, I went to codecademy.com directly and it works now. The greedy website was just trying to trick me into buying a pro license.

Third sorry: after trying to enter the JS tutorial on codecademy.com/learn, it took me to the pay page, so I guess it's not free.

Method placed inside object, function still doesn't work.
posted to Ask by JoshBorthick

@Zavexeon I'm so sorry Zav, I'm just not getting it. I changed it to:

double: exerciseOne().double(num) {
  return num * 2;
}

but it's still not working. Also tried:

exerciseOne().double: double(num) {
  return num * 2;
}

I don't think I'm supposed to have to call the function, just write it.

Also, the codecademy link told me I had to pay since my free trial expired.

Method placed inside object, function still doesn't work.
posted to Ask by JoshBorthick

@Zavexeon Thanks for the resource, but I had a free account with them that has already expired. Their tiny free JS tutorial only has like 3 parts to it, anyway, teaching how to make bubbles and sparks on the screen or something. Did you find some part of their JS tutorial that goes more in depth? Where is this?

Does that mean that the method will not be named double, as the instructions specified? Should it be actually called function(number), not double(number)?

Also, the repl.it page came with return mathHelpers already there. I figured that meant I was supposed to leave it. It actually is inside the exerciseOne() function.

So, here's what I've got so far:

function exerciseOne() {
  let mathHelpers = {
    double: function(num) {
      return num * 2;
    }
  };
return mathHelpers
}

Still a no-go.

Edit: The only thing I was expected to supply was the double key and method for value, everything else was already there.

Edit2: Unless you meant that it's outside the function because it's not indented.

Method placed inside object, function still doesn't work.
posted to Ask by JoshBorthick

@Zavexeon I have no idea what the expected output is. The suggestion says:

mathHelpers object should contain a method called double

Which it does, right there where I named it double(num). It's not a very helpful suggestion on the repl's part.

This is so unnecessarily complicated. Why is there never a simple explanation, why do they always have to obfuscate their instructions?

Method placed inside object, function still doesn't work.
posted to Ask by JoshBorthick

@Zavexeon Uhh, I don't know that that last is. I mean, it's HTML, but I'm not sure why.

Method placed inside object, function still doesn't work.
posted to Ask by JoshBorthick

@Zavexeon This is from the Lambda School prepwork on web development. Sure, thanks.

So, the whole thing should look like this?

function exerciseOne() {
  let mathHelpers = {
    double: double(num) {
      num * 2;
    }
  }
return mathHelpers
}

But it still doesn't work.

Method placed inside object, function still doesn't work.
posted to Ask by JoshBorthick

@Zavexeon Oh, I guess it didn't work. This is what I put in:

function exerciseOne(){
  // Exercise One: In this exercise you are given an object called 'mathHelpers'
  // Within mathHelpers, create a method called 'double'
  // This method should take one parameter, a number, 
  // and it should return that number multiplied by two.
  let mathHelpers = {
    // Create double method in here.
    mathHelpers.double = double(num) {
      return 
    };
  };
  return mathHelpers;
}
Method placed inside object, function still doesn't work.
posted to Ask by JoshBorthick

@Zavexeon Oh, I didn't know that. It never said anything like that in any of the JS tuts I've done. Thank you Zavexeon.

Method placed inside object, function still doesn't work.
posted to Ask by JoshBorthick

@Zavexeon No, I'm trying to add a function as a value to an object key, which does not already exist in the object.

Method placed inside object, function still doesn't work.
posted to Ask by JoshBorthick

@Zavexeon Sure:

function exerciseOne(){
  // Exercise One: In this exercise you are given an object called 'mathHelpers'
  // Within mathHelpers, create a method called 'double'
  // This method should take one parameter, a number, 
  // and it should return that number multiplied by two.
  let mathHelpers = {
    // Create double method in here. **(this is my part)**
    double: double(number) {
      return number*2
    }; // **(end my part)**
  };
  return mathHelpers;
}