<div class="fixed">
<div class="title-bar" data-responsive-toggle="responsive-menu" data-hide-for="medium">
<button class="menu-icon" type="button" data-toggle="responsive-menu"></button>
<div class="title-bar-title">Menu</div>
</div>
<div class="top-bar">
<img src="http://via.placeholder.com/120">
</div>
</div>
.top-bar {
background-color: #f42e;
height: 40px;
line-height: 64px;
margin-bottom: 0;
}
.top-bar-left {
padding-left: 0
}
[
[location1] [some properties],
[location2] [some properties],
[location1] [some properties]
]
location1 - some properties * 2,
location2 - some properties * 1,
.map()
operator, perhaps? Or something like that...
marat89bluolyu sends brownie points to @khaduch :sparkles: :thumbsup: :sparkles:
:star2: 3254 | @khaduch |http://www.freecodecamp.com/khaduch
Array.find()
or Array.findIndex()
to locate matching items in the final array?
img-responsive
has to be an attribute of the img
element.
class="center-block"
on the img element
<button><a>...</a></button>
something similar to this where the text it linked but not the button so it wont link maybe. Have no idea with your problem until i see your code.
new Date(year, month[, date[, hours[, minutes[, seconds[, milliseconds]]]]]);
from https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date
silentarrowz sends brownie points to @heroiczero :sparkles: :thumbsup: :sparkles:
:star2: 1675 | @heroiczero |http://www.freecodecamp.com/heroiczero
hemakshis sends brownie points to @piteto and @roniquericketts and @orangekulture :sparkles: :thumbsup: :sparkles:
:cookie: 36 | @piteto |http://www.freecodecamp.com/piteto
:cookie: 455 | @orangekulture |http://www.freecodecamp.com/orangekulture
:cookie: 383 | @roniquericketts |http://www.freecodecamp.com/roniquericketts
let author = Boolean(json.quoteAuthor)?json.quoteAuthor:"Anonymous";
for your code instead of the if statement after https://codepen.io/anon/pen/NveOKK
beachhermit sends brownie points to @heroiczero :sparkles: :thumbsup: :sparkles:
:star2: 1676 | @heroiczero |http://www.freecodecamp.com/heroiczero
let author = json.quoteAuthor || "Anonymous";
on (anything that goes to the screen)
if (mathCalc.length < 20ish) ...
<!DOCTYPE html>
<html>
<head>
<title>Particle Paradigm</title>
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.0.0-alpha.6/css/bootstrap.min.css" />
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css" />
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.5.2/animate.min.css" />
<link rel="stylesheet" type="text/css" href="css/style.css" />
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.0.0-alpha.6/js/bootstrap.min.js"></script>
<script type="text/javascript" src="https://rawgithub.com/darkskyapp/skycons/master/skycons.js"></script>
<script type="text/javascript" src="js/main.js"></script>
</head>
kowalatam sends brownie points to @mot01 :sparkles: :thumbsup: :sparkles:
:cookie: 826 | @mot01 |http://www.freecodecamp.com/mot01
netrunner21 sends brownie points to @mot01 :sparkles: :thumbsup: :sparkles:
:cookie: 827 | @mot01 |http://www.freecodecamp.com/mot01
if (theAboveToString.indexOf(".") )
if (theAboveToString.indexOf(".") !== -1)
refath sends brownie points to @mot01 :sparkles: :thumbsup: :sparkles:
:cookie: 828 | @mot01 |http://www.freecodecamp.com/mot01
Hello guys, I am going through my JavaScript courses in FCC and right now I encountered something called the reduce function. The definition they give is too confusing for me to understand. And instead of just hit and trial and pass the test I decided to understand how the function works. But every resource I check I still don't get a explanation that I can fully comprehend.
I looked through Mozilla Developer Network and reddit and still can't understand the damn thing.
So far this is what I understand:
.reduce can be used to iterate through an array using an accumulator (i can't understand what this is) and the values of the array itself? I know there are other two optional parameters but those get even confusing.
the examples have shown that you can use it to add/subtract stuff in an array.
But I feel like it is a lot more deeper than just that?
Please point me towards somewhere where I can get a better understanding of this stuff. Thank You!
ingundela sends brownie points to @mot01 :sparkles: :thumbsup: :sparkles:
:cookie: 829 | @mot01 |http://www.freecodecamp.com/mot01
:star2: 3256 | @khaduch |http://www.freecodecamp.com/khaduch
chopedada sends brownie points to @khaduch :sparkles: :thumbsup: :sparkles:
ingundela sends brownie points to @orangekulture :sparkles: :thumbsup: :sparkles:
:cookie: 456 | @orangekulture |http://www.freecodecamp.com/orangekulture
$("tagname").html ()
rafaelmonroy sends brownie points to @kowalatam :sparkles: :thumbsup: :sparkles:
:cookie: 310 | @kowalatam |http://www.freecodecamp.com/kowalatam
Hello,
I am trying to write a simple function that sums all numbers in an array. I want to use While loop. Following is the code:
function sumArray (arr) {
var sum = 0
while (i <= arr.length - 1) {
var i = 0;
sum = sum + arr[i];
i++;
}
console.log(sum);
}
sumArray([1,2,3,4])
The value of sum stays 0. Any idea what is going wrong?
var myVar = "";
function success()
{ myVar = $("tagname").html () }
i <= arr.length - 1
can also be written as i < arr.length
minoy sends brownie points to @cmccormack :sparkles: :thumbsup: :sparkles:
:star2: 1176 | @cmccormack |http://www.freecodecamp.com/cmccormack
test(1,1);
function test(a,b) {
return a+b;
}
return test;
return test
test()
and dont call it
.reduce()
in many different ways.
+ / -
twoerner94 sends brownie points to @mot01 :sparkles: :thumbsup: :sparkles:
:cookie: 830 | @mot01 |http://www.freecodecamp.com/mot01
<a>
's are more for linking to other pages and different parts of the page
btn-default
you need to add the bootstrap css file for those to work, not sure if that's your intention
netrunner21 sends brownie points to @mot01 :sparkles: :thumbsup: :sparkles:
:cookie: 831 | @mot01 |http://www.freecodecamp.com/mot01
body{background-image:url("someinage.jpeg");}
body{background-image:url("http://media.istockphoto.com/photos/teak-wood-background-horizontal-drop-shadow-picture-id485870457?k=6&m=485870457&s=612x612&w=0&h=eOn39YnJ443uc7lSUq4ijkbFp79T5C_kird3uwsaFsQ=");}
<div class col-md-3><a href ="#"> Muffins </a></div>
legendinraze sends brownie points to @firou1925 and @just1witness :sparkles: :thumbsup: :sparkles:
:cookie: 303 | @firou1925 |http://www.freecodecamp.com/firou1925
:cookie: 308 | @just1witness |http://www.freecodecamp.com/just1witness
firou1925 sends brownie points to @just1witness :sparkles: :thumbsup: :sparkles:
:cookie: 309 | @just1witness |http://www.freecodecamp.com/just1witness
just1witness sends brownie points to @firou1925 :sparkles: :thumbsup: :sparkles:
:cookie: 304 | @firou1925 |http://www.freecodecamp.com/firou1925
netrunner21 sends brownie points to @firou1925 :sparkles: :thumbsup: :sparkles:
:cookie: 305 | @firou1925 |http://www.freecodecamp.com/firou1925
<button class="navbar-toggler navbar-toggler-right" type="button" data-toggle="collapse" data-target="#navbar-col" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="hambars"><i class="fa fa-bars" aria-hidden="true"></i></span>
</button>
mohnabil sends brownie points to @netrunner21 :sparkles: :thumbsup: :sparkles:
:cookie: 378 | @netrunner21 |http://www.freecodecamp.com/netrunner21
jQuery.getJSON( url [, data ] [, success ] )
feldbot sends brownie points to @korzo :sparkles: :thumbsup: :sparkles:
:cookie: 437 | @korzo |http://www.freecodecamp.com/korzo
feldbot sends brownie points to @gpiliponyte :sparkles: :thumbsup: :sparkles:
:cookie: 339 | @gpiliponyte |http://www.freecodecamp.com/gpiliponyte
feldbot sends brownie points to @korzo :sparkles: :thumbsup: :sparkles:
:warning: feldbot already gave korzo points
http://www.google.com/s2/favicons?domain=www.google.de