What other info than the instructions should I learn to do this? Josh
Further Edit: I've tried a bunch of different ways, like: mathHelpers.double: method() { mathHelpers[double]: method() { mathHelpers[double] = method() { mathHelpers["double"]: method() { mathHelpers["double"] = method() { mathHelpers.double = method() { and so forth. I would have googled it but I have no idea how to word the search. I'm not sure what I'm not doing right, or what right is.
Method placed inside object, function still doesn't work.
Hi everyone,
Edit: (from here:
https://repl.it/talk/announcements/Repl-Talk-Rules-and-Guidelines-README/22109)
--Attributes of a bad question: does not include link to repl or does include code in a codeblock? This seems counter intuitive, but to follow this logic I have not placed my code in a codeblock.--
Edit: Ok, I get it now, it wants the repl link only:
https://repl.it/student/submissions/9557070
I am given a challenge among two in JS Assignment 12: Methods, Loops, and the this Keyword.
Here's my input for trying to solve:
double: double(number) {
return number*2
};
The template I used is from here:
https://apply.lambdaschool.com/courses/web-precourse/lessons/javascript-data-structures-2/topic/learn-to-create-methods-on-objects-and-utilize-the-this-keyword/
It's the first code block in the "Methods" section.
What other info than the instructions should I learn to do this?
Josh
Further Edit: I've tried a bunch of different ways, like:
mathHelpers.double: method() {
mathHelpers[double]: method() {
mathHelpers[double] = method() {
mathHelpers["double"]: method() {
mathHelpers["double"] = method() {
mathHelpers.double = method() {
and so forth. I would have googled it but I have no idea how to word the search. I'm not sure what I'm not doing right, or what right is.
Here is my error:
ReferenceError: exerciseOne is not defined
at eval (eval at n.evaluate (https://repl.it/public/replbox_lang/1.0.6/javascript.js:237:152404), <anonymous>:4:14)
at https://repl.it/public/replbox_lang/1.0.6/javascript.js:684:290616
at n.run (https://repl.it/public/replbox_lang/1.0.6/javascript.js:684:290835)
at n.execute (https://repl.it/public/replbox_lang/1.0.6/javascript.js:684:289470)
at e.M as queueRunnerFactory
at e.execute (https://repl.it/public/replbox_lang/1.0.6/javascript.js:684:245810)
at e.fn (https://repl.it/public/replbox_lang/1.0.6/javascript.js:684:300964)
at https://repl.it/public/replbox_lang/1.0.6/javascript.js:684:290550
at n.run (https://repl.it/public/replbox_lang/1.0.6/javascript.js:684:290835)
at n.execute (https://repl.it/public/replbox_lang/1.0.6/javascript.js:684:289470)
@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.