get help in general - we have more specialized help rooms here: https://gitter.im/FreeCodeCamp/home
khaduch sends brownie points to @manish-giri :sparkles: :thumbsup: :sparkles:
:star2: 6724 | @manish-giri |http://www.freecodecamp.com/manish-giri
github-henry sends brownie points to @manish-giri :sparkles: :thumbsup: :sparkles:
:star2: 6725 | @manish-giri |http://www.freecodecamp.com/manish-giri
thekholm80 sends brownie points to @manish-giri and @heroiczero and @darrenfj :sparkles: :thumbsup: :sparkles:
:star2: 1979 | @heroiczero |http://www.freecodecamp.com/heroiczero
:star2: 2210 | @darrenfj |http://www.freecodecamp.com/darrenfj
:star2: 6726 | @manish-giri |http://www.freecodecamp.com/manish-giri
I don't know in the specific, but my general advice for any job hunting is that if you like it, then go for it.
Write a letter where you explain that you don't have that specific skills, but focus on the one you have that can fit you as a candidate.
It's understandable that you don't have 100% of the skills required, focus on the one you have in common and your strnght
darrenfj sends brownie points to @khaduch and @alexanderkopke and @github-henry and @manish-giri and @thekholm80 and @daddycardona and @korzo and @longnt80 and @sjames1958gm and @marmiz :sparkles: :thumbsup: :sparkles:
:cookie: 436 | @github-henry |http://www.freecodecamp.com/github-henry
:star2: 1553 | @thekholm80 |http://www.freecodecamp.com/thekholm80
:star2: 1689 | @alexanderkopke |http://www.freecodecamp.com/alexanderkopke
:star2: 3436 | @khaduch |http://www.freecodecamp.com/khaduch
:cookie: 435 | @daddycardona |http://www.freecodecamp.com/daddycardona
:cookie: 705 | @korzo |http://www.freecodecamp.com/korzo
:star2: 1067 | @marmiz |http://www.freecodecamp.com/marmiz
:star2: 6727 | @manish-giri |http://www.freecodecamp.com/manish-giri
:star2: 8637 | @sjames1958gm |http://www.freecodecamp.com/sjames1958gm
:cookie: 627 | @longnt80 |http://www.freecodecamp.com/longnt80
longnt80 sends brownie points to @darrenfj :sparkles: :thumbsup: :sparkles:
:star2: 2211 | @darrenfj |http://www.freecodecamp.com/darrenfj
korzo sends brownie points to @heroiczero and @darrenfj and @manish-giri :sparkles: :thumbsup: :sparkles:
:star2: 2212 | @darrenfj |http://www.freecodecamp.com/darrenfj
:star2: 1980 | @heroiczero |http://www.freecodecamp.com/heroiczero
:star2: 6728 | @manish-giri |http://www.freecodecamp.com/manish-giri
ericmiller777 sends brownie points to @longnt80 :sparkles: :thumbsup: :sparkles:
:cookie: 628 | @longnt80 |http://www.freecodecamp.com/longnt80
heroiczero sends brownie points to @khaduch and @alexanderkopke and @github-henry and @manish-giri and @thekholm80 and @daddycardona and @korzo and @longnt80 and @sjames1958gm and @marmiz and @darrenfj :sparkles: :thumbsup: :sparkles:
:star2: 3437 | @khaduch |http://www.freecodecamp.com/khaduch
:star2: 1690 | @alexanderkopke |http://www.freecodecamp.com/alexanderkopke
:cookie: 437 | @github-henry |http://www.freecodecamp.com/github-henry
:star2: 6729 | @manish-giri |http://www.freecodecamp.com/manish-giri
:cookie: 706 | @korzo |http://www.freecodecamp.com/korzo
:star2: 1068 | @marmiz |http://www.freecodecamp.com/marmiz
:star2: 2213 | @darrenfj |http://www.freecodecamp.com/darrenfj
:star2: 8638 | @sjames1958gm |http://www.freecodecamp.com/sjames1958gm
:cookie: 436 | @daddycardona |http://www.freecodecamp.com/daddycardona
:star2: 1554 | @thekholm80 |http://www.freecodecamp.com/thekholm80
:cookie: 629 | @longnt80 |http://www.freecodecamp.com/longnt80
korzo sends brownie points to @heroiczero :sparkles: :thumbsup: :sparkles:
:star2: 1981 | @heroiczero |http://www.freecodecamp.com/heroiczero
ahmadabdolsaheb sends brownie points to @mstellaluna :sparkles: :thumbsup: :sparkles:
:star2: 1006 | @mstellaluna |http://www.freecodecamp.com/mstellaluna
khaduch sends brownie points to @darrenfj :sparkles: :thumbsup: :sparkles:
:star2: 2214 | @darrenfj |http://www.freecodecamp.com/darrenfj
khaduch sends brownie points to @heroiczero :sparkles: :thumbsup: :sparkles:
:star2: 1982 | @heroiczero |http://www.freecodecamp.com/heroiczero
https://twitter.com/intent/tweet?
not https://twitter.com/share?text=
- because by using your URL you are literally sharing the codepen with a text description in front of it (the quote)
https://dev.twitter.com/web/intents
khaduch sends brownie points to @jimmayvv :sparkles: :thumbsup: :sparkles:
:cookie: 300 | @jimmayvv |http://www.freecodecamp.com/jimmayvv
desordi3 sends brownie points to @jimmayvv and @khaduch :sparkles: :thumbsup: :sparkles:
:cookie: 301 | @jimmayvv |http://www.freecodecamp.com/jimmayvv
:star2: 3438 | @khaduch |http://www.freecodecamp.com/khaduch
text=
after it?
https://twitter.com/intent/tweet?text=[enter_text_here]
ixava sends brownie points to @alpox :sparkles: :thumbsup: :sparkles:
:star2: 1420 | @alpox |http://www.freecodecamp.com/alpox
:cookie: 437 | @daddycardona |http://www.freecodecamp.com/daddycardona
khaduch sends brownie points to @daddycardona :sparkles: :thumbsup: :sparkles:
alexandrupintilei sends brownie points to @sorinr :sparkles: :thumbsup: :sparkles:
:star2: 1349 | @sorinr |http://www.freecodecamp.com/sorinr
github-henry sends brownie points to @heroiczero and @darrenfj :sparkles: :thumbsup: :sparkles:
:star2: 1984 | @heroiczero |http://www.freecodecamp.com/heroiczero
:star2: 2215 | @darrenfj |http://www.freecodecamp.com/darrenfj
desordi3 sends brownie points to @korzo :sparkles: :thumbsup: :sparkles:
:cookie: 708 | @korzo |http://www.freecodecamp.com/korzo
`var newQuote = Math.floor((Math.random() * quote.length));
// function that gets random quote and tweets out the quote
function randomQuote() {
document.getElementById("quote").innerHTML = quote[newQuote];
var tweetit = document.getElementById("twitterbutton");
tweetit.setAttribute("href",
https://twitter.com/intent/tweet?text=` + quote[newQuote])
}``
``var newQuote = Math.floor((Math.random() * quote.length));
// function that gets random quote and tweets out the quote
function randomQuote() {
document.getElementById("quote").innerHTML = quote[newQuote];
var tweetit = document.getElementById("twitterbutton");
tweetit.setAttribute("href",
https://twitter.com/intent/tweet?text=` + quote[newQuote])
}```
var newQuote = Math.floor((Math.random() * quote.length)); // function that gets random quote and tweets out the quote function randomQuote() { document.getElementById("quote").innerHTML = quote[newQuote]; var tweetit = document.getElementById("twitterbutton"); tweetit.setAttribute("href",https://twitter.com/intent/tweet?text=` + quote[newQuote])
@desordi3 why not
function randomQuote() {
var newQuote = Math.floor(Math.random() * quote.length);
document.getElementById("quote").innerHTML = quote[newQuote];
var tweetit = document.getElementById("twitterbutton");
tweetit.setAttribute(
"href",
`https://twitter.com/intent/tweet?text=` + quote[newQuote]
);
picGenerator(quote[newQuote]);
}
function picGenerator(q) {
if (q.includes("Tyrell")) {
var picturePlacement = document.getElementById("picgoeshere");
newpic.setAttribute(
"src",
`http://www.usanetwork.com/sites/usanetwork/files/styles/629x720/public/mrrobot_s2_cast_martin_wallstrom.jpg?itok=keeytAAF`
);
}
}
end remove call to picGenerator() at the end of JS block
desordi3 sends brownie points to @korzo :sparkles: :thumbsup: :sparkles:
var keyMap = {} ;
// x.length --> 3
p = [1,2,3,4];
for (var i = 0; i < p.length; i++) {
y = i*i;
keyMap[i] = y;
keyMap[i].y = p[i]
}
var keyMap = {} ;
// x.length --> 3
p = [1,2,3,4];
for (var i = 0; i < p.length; i++) {
let y = i*i;
keyMap[i] = {};
keyMap[i][y] = p[i];
}
const keymap = [1, 2, 3, 4].reduce((result, value, index) => {
result[`${index}:${Math.pow(index, 2)}`] = value;
return result;
}, {});
console.log(keymap);
/*
{ '0:0': 1, '1:1': 2, '2:4': 3, '3:9': 4 }
*/
var keyMap = {} ;
let dbQuery;
for (var i = 0; i < flashcardImageIds.length; i++) {
dbQuery = db('flashcard_images').insert({
name: flashcardImageIds[i].name,
flashcard_id: flashcardImageNewId,
leaf_folder_id: null,
order: flashcardImageIds[i].order,
image_uri: flashcardImageIds[i].image_uri,
image_thumbnail_uri: flashcardImageIds[i].image_thumbnail_uri,
user_id: flashcardImageIds[i].user_id,
hidden: flashcardImageIds[i].hidden,
created_at: createdAt,
updated_at: createdAt
});
let x = flashcardImageIds[i].id;
dbQuery.then((res) => {
console.log(x +" <---> "+res);
console.log(res)
keyMap[i] = {};
keyMap[i][x] = res;
});
{
"key": {
"id": "res"
}
}
const keymap = [1, 2, 3, 4].reduce((result, value, index) => {
result[`${index}`] = {};
result[`${index}`][`${index}:${index*index}`] = value;
return result;
}, {});
console.log(keymap);
{ '0': { '0:0': 1 },
'1': { '1:1': 2 },
'2': { '2:4': 3 },
'3': { '3:9': 4 } }
keyMap[i] = {};
keyMap[i][x] = res;
console.log(keyMap);
-----------------------------------------------
current outout
{ '12': { '545': [ 959 ] } }
{ '12': { '798': [ 960 ] } }
{ '12': { '799': [ 961 ] } }
{ '12': { '800': [ 962 ] } }
{ '12': { '801': [ 963 ] } }
{ '12': { '802': [ 964 ] } }
{ '12': { '803': [ 965 ] } }
{ '12': { '804': [ 966 ] } }
{ '12': { '805': [ 967 ] } }
{ '12': { '806': [ 968 ] } }
{ '12': { '807': [ 969 ] } }
{ '12': { '808': [ 970 ] } }
desired output
{ { '545': [ 959 ] },
{ '798': [ 960 ] },
{ '799': [ 961 ] },
{ '800': [ 962 ] },
{ '801': [ 963 ] },
{ '802': [ 964 ] },
{ '803': [ 965 ] },
{ '804': [ 966 ] },
{ '805': [ 967 ] },
{ '806': [ 968 ] },
{ '807': [ 969 ] },
{ '808': [ 970 ] } }
surya4 sends brownie points to @adelmahjoub and @korzo :sparkles: :thumbsup: :sparkles:
:cookie: 602 | @adelmahjoub |http://www.freecodecamp.com/adelmahjoub
:cookie: 709 | @korzo |http://www.freecodecamp.com/korzo
keyMap = {};
keyMap[x] = res;
console.log(keyMap);
:star2: 3439 | @khaduch |http://www.freecodecamp.com/khaduch
codecampnick sends brownie points to @khaduch :sparkles: :thumbsup: :sparkles:
Hello everyone,
I am doing the arguments optional challenge in freecodecamp. I have the following code written down.
function addTogether() {
var a = arguments[0];
var b = arguments[1];
if( typeof a === "number" && typeof b === "number") {
return(a + b);
} else if( typeof a === "number"){
return function (c) {
if(Number.isInteger(c)){
return(a + parseInt(c) );
} else {
return undefined;
}
};
}
else if (typeof b !== "number" || typeof a !== "number"){
return(undefined);
}
addTogether(2,"2");
}
I have consoled.log everything and it looks to my like it should pass. Any ideas on why its not passing the challenge. The one that is still a red “x” is when it passes the parameter (2, “3”)
addTogether(2,"2");
of the function. Its now still in addTogether
which would cause a recursive call in some case
zootechdrum sends brownie points to @alpox :sparkles: :thumbsup: :sparkles:
:star2: 1421 | @alpox |http://www.freecodecamp.com/alpox
import React, { Component } from 'react';
import events from 'events';
const slumux = new events.EventEmitter();
class Controls extends Component {
increment() {
slumux.emit('increment');
}
decrement() {
slumux.emit('decrement');
}
reset() {
slumux.emit('reset');
}
render() {
return (
<div>
<button onClick={this.increment}>Increment</button>
<button onClick={this.decrement}>Decrement</button>
<button onClick={this.reset}>Reset</button>
</div>
)
}
}
class Counter extends Component {
constructor(props) {
super(props);
this.state = {
counter: 0
}
}
increment() {
this.setState({counter: this.state.counter + 1});
}
decrement() {
this.setState({counter: this.state.counter - 1});
}
reset() {
this.setState({counter: 0});
}
componentDidMount() {
slumux.addListener('increment', this.increment.bind(this));
slumux.addListener('decrement', this.decrement.bind(this));
slumux.addListener('reset', this.reset.bind(this));
}
componentWillUnmount() {
slumux.removeAllListeners();
}
render() {
return <div>{this.state.counter}</div>
}
}
class App extends Component {
render() {
return (
<div>
<Counter/>
<Controls/>
</div>
);
}
}
export default App;