get help in general - we have more specialized help rooms here: https://gitter.im/FreeCodeCamp/home
Warning: Failed prop type: In order to properly initialize the PanelGroup in a way that is accessible to assistive technologies (such as screen readers) an `id` or a `generateChildId` prop to PanelGroup is required
corysw sends brownie points to @sjames1958gm :sparkles: :thumbsup: :sparkles:
:star2: 8960 | @sjames1958gm |http://www.freecodecamp.org/sjames1958gm
the filter method you're using will remove any item
that returns true
. you are saying "arr1 does not include item
OR arr2 does not include item
" and the way the ||
logical operator works:
when used with Boolean values, || returns true if either operand is true
!
javalavamt sends brownie points to @gersho :sparkles: :thumbsup: :sparkles:
:cookie: 593 | @gersho |http://www.freecodecamp.org/gersho
javalavamt sends brownie points to @thekholm80 :sparkles: :thumbsup: :sparkles:
:star2: 1690 | @thekholm80 |http://www.freecodecamp.org/thekholm80
seems like someone mentioned that the other day
how am i gonna do next time someones asks for help ? my first reflex is going see how i done it >.>
@jfines This is the problem
this.get = function(value) { return value; }
It should be
this.get = function(value) { return this[value]; }
var h = {a: 1, b: 2}
h
{a: 1, b: 2}
Object { a: 0, b: 1 }
Object
, Array
, Function
, etc
console.log
from the code, and not in the console itself, but don't think that should make a difference
var count = 0;
function cc(card) {
// Only change code below this line
switch(card) {
case 2:
case 3:
case 4:
case 5:
case 6:
count += 1;
break;
case 7:
case 8:
case 9:
count += 0;
break;
case 10:
case "J":
case "Q":
case "K":
case "A":
count -= 1;
}
return count + (count > 0 ? "Bet" : "Hold");
// Only change code above this line
}
// Add/remove calls to test your function.
// Note: Only the last will display
cc(2); cc(3); cc(7); cc('K'); cc('A');
5Bet
or 0Hold
?
[
{
"id": "2",
"title": "Rogner Hotel",
"short": "rogner",
"category": "shtepi",
"location": "{lat: 41.3239934, lng: 19.822973}"
},
{
"id": "4",
"title": "ETC",
"short": "etc",
"category": "biznese",
"location": "{lat: 41.3239934, lng: 19.822973}"
}
]
var duh = [
{
"id": "2",
"title": "Rogner Hotel",
"short": "rogner",
"category": "shtepi",
"location": "{lat: 41.3239934, lng: 19.822973}"
},
{
"id": "4",
"title": "ETC",
"short": "etc",
"category": "biznese",
"location": "{lat: 41.3239934, lng: 19.822973}"
}
];
duh.forEach(obj => console.log(obj.location));
locations
.map(each => {
each.location = {lat: parseFloat(each.location.lat), lng: parseFloat(each.location.lng)};
console.log(each.location);
each.title = String(each.title);
each.short = String(each.short);
each.category = String(each.category);
return each;
})
.forEach(function (placeItem) {
self.placeList.push(new Place(placeItem));
});
parseFloat(each.location.lat)
because each.location.lat
does not exist, only each.location
parseJSON
?
m-schou sends brownie points to @thekholm80 :sparkles: :thumbsup: :sparkles:
:star2: 1691 | @thekholm80 |http://www.freecodecamp.org/thekholm80
.map()
.map(each => {
console.log(each.location);
let [loc1,loc2] = each.location.match(/\d+\.\d+/g);
console.log(+loc1, +loc2);
41.3239934
19.822973
dkapexhiu sends brownie points to @manish-giri :sparkles: :thumbsup: :sparkles:
:star2: 6808 | @manish-giri |http://www.freecodecamp.org/manish-giri
.parse
it
Qb {message: "not a LatLng or LatLngLiteral: not an Object", name: "InvalidValueError", stack: "Error↵ at new Qb (https://maps.googleapis.com/m…ocalhost:3000/js/app.js:48:22)↵ at <anonymous>"}
message
:
"not a LatLng or LatLngLiteral: not an Object"
name
:
"InvalidValueError"
InvalidValueError: setPosition: not a LatLng or LatLngLiteral: not an Object
overflow
is supported in both
devkosov sends brownie points to @khaduch :sparkles: :thumbsup: :sparkles:
:star2: 3728 | @khaduch |http://www.freecodecamp.org/khaduch
excuse me, how to convert this:
var pos = {
lat: position.coords.latitude,
lng: position.coords.longitude
};
into an object?
InvalidValueError: setPosition: not a LatLng or LatLngLiteral: not an Object
when try: infoWindow.setPosition(pos);
typeof pos
overflow
property is not animatable? Also according to this: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_animated_properties, overflow
is not listed as a property that can be animated. The stackoverflow link mentions using some JS code to do it? I don't know if there is a reason why it works in other browsers and not in the microsoft browsers?
devkosov sends brownie points to @khaduch :sparkles: :thumbsup: :sparkles:
hijerboa sends brownie points to @bjorno43 :sparkles: :thumbsup: :sparkles:
:cookie: 268 | @bjorno43 |http://www.freecodecamp.org/bjorno43