clanmaster sends brownie points to @mot01 :sparkles: :thumbsup: :sparkles:
:star2: 1027 | @mot01 |http://www.freecodecamp.org/mot01
mot01 sends brownie points to @clanmaster and @gulsvi :sparkles: :thumbsup: :sparkles:
:cookie: 264 | @clanmaster |http://www.freecodecamp.org/clanmaster
:star2: 2661 | @gulsvi |http://www.freecodecamp.org/gulsvi
var string = “1234567890”
res.send(string) // (123)456-7890 or $1,234,567,890
function palindrome(str) {
// Good luck!
return str == str.toLowerCase().replace(/[.*#_ ,]/gi, '').split("").reverse().join("");
// return str.toLowerCase().replace(/[.*#_ ,]/gi, '').split("").reverse().join("");
}
palindrome("_eye");
str.toLowerCase().replace(/[.*#_ ,]/gi, '').split("").reverse().join("")
return?
eye
_eye
(original) with eye
(cleansed and reversed). You need to be comparing eye
(cleansed) with eye
(cleansed and reversed).
maxiwer sends brownie points to @masd925 :sparkles: :thumbsup: :sparkles:
:star2: 4719 | @masd925 |http://www.freecodecamp.org/masd925
codernewby sends brownie points to @darrenfj :sparkles: :thumbsup: :sparkles:
:star2: 2418 | @darrenfj |http://www.freecodecamp.org/darrenfj
a
elements a height of 40px in your css (line 5)
for
you make asynchronous api calls. This means that your console.log(status[0])
runs BEFORE any data came back and BEFORE status
is filled.$.getJSON
. You can as example create a new function which takes a status as input and call that function from within the callback of jquery.
set
and passed in samp
as an argument below it. As well also I console.log(status)
right after the push, ties into what @alpox was saying.
:cookie: 136 | @muhammedkarim |http://www.freecodecamp.org/muhammedkarim
frosty427 sends brownie points to @muhammedkarim and @x140hu4 :sparkles: :thumbsup: :sparkles:
$.(".btn").on("click", function(){
if(this.id ==="ac"){
inputs = [""];
}
});
$(".btn").on
raghav17 sends brownie points to @njm8 :sparkles: :thumbsup: :sparkles:
:cookie: 319 | @njm8 |http://www.freecodecamp.org/njm8
frosty427 sends brownie points to @lydatech :sparkles: :thumbsup: :sparkles:
:star2: 2693 | @lydatech |http://www.freecodecamp.org/lydatech
col
attributes to your HTML elements
class="col-md-6 col-xs-12"
<ul>
then have a @media
query to arrange everything into an accordion drop down when the screen size gets to like 740px or something.
@media screen and (max-width 740px)
then write your css code for that condition underneath. But look up media queries on MDN, that will explain things way better than I can hehe.
timers = [{key: 'cat', timeLeft: 5}, {key:'dog', timeLeft: 4}]
//Updates Array timeLeft by the second
function updateTime(arrayName) {
arrayName.forEach(item => {
let key = item.key
let countDown = setInterval((item) => {
let remainingTime = item['timeLeft'] - 1
if(remainingTime < 0) {
clearInterval(countDown)
return
}
item['timeLeft'] = remainingTime
console.log(item)
}, 1000)
});
}
updateTime(timers)
timers = [{key: 'cat', timeLeft: 5}, {key:'dog', timeLeft: 4}]
//Updates Array timeLeft by the second
function updateTime(arrayName) {
arrayName.forEach(item => {
let key = item.key
let countDown = setInterval(() => {
item.timeLeft = item.timeLeft - 1
if(item.timeLeft < 0) {
clearInterval(countDown)
return
}
console.log(item)
}, 1000)
});
}
updateTime(timers)
jjzep sends brownie points to @sjames1958gm and @gaobin1019 :sparkles: :thumbsup: :sparkles:
:star2: 9076 | @sjames1958gm |http://www.freecodecamp.org/sjames1958gm
TypeError: a[rand] is undefined[Learn More]
index.html:54:9
.middlerows {
background-color: white;
padding: 15px 25px 16px 25px;
margin: 0px 10px 0px 10px;
border: solid black;
border-width: 0px 0px 1px 0px;
}
<div class="row justify-content-md-center">
<div class="col col-lg-3">
centered
</div>
</div>
leighhobson89 sends brownie points to @eweiss17 and @kiwilicious :sparkles: :thumbsup: :sparkles:
:cookie: 303 | @kiwilicious |http://www.freecodecamp.org/kiwilicious
:cookie: 614 | @eweiss17 |http://www.freecodecamp.org/eweiss17
leighhobson89 sends brownie points to @kiwilicious :sparkles: :thumbsup: :sparkles: