huluoyang / freecodecamp.cn Goto Github PK
View Code? Open in Web Editor NEW随着FCC中文社区的快速发展和更多小伙伴的崛起,此项目已从个人项目升级到团队项目。详情请移步:
Home Page: https://github.com/FreeCodeCampChina/freecodecamp.cn
随着FCC中文社区的快速发展和更多小伙伴的崛起,此项目已从个人项目升级到团队项目。详情请移步:
Home Page: https://github.com/FreeCodeCampChina/freecodecamp.cn
一个引申项目,提供对源项目的导航,是必须的,也是一种尊敬。:smile:
Like
Info
this is paragraph
this is paragraph
预文本格式,就会保留空格 和换行 。
computer code
keyboard input
teletype text
computer variable
cha.
mc
下一行会从右往左输出
长引用:
黄沙百战穿金甲,不破楼兰终不还,后宫佳丽三千人,铁杵磨成绣花针。
短引用:
百年孤独
<a href="/index.html target="_top">跳出框架
发送邮件以Hello World!开头
这是另一个 mailto 链接: 发送邮件!抄送,秘密抄送,主题+内容
调整图像大小
100 | 200 | 300 |
100 | 200 | 300 |
100 | 200 | 300 |
100 | 200 | 300 |
100 | 200 | 300 |
100 | 200 | 300 |
row 1, cell 1 | row 1, cell 2 |
row 2, cell 2 |
表头1 | |
---|---|
row 1, cell 1 | row 1, cell 2 |
row 2, cell 1 | row 2, cell 2 |
这是一个段落。 这是另一个段落。 |
这个单元包含一个表格: |
这个单元包含一个列表:
|
HELLO |
this is
a break
paragraph
To Use this Template:
NOTE: ISSUES ARE NOT FOR CODE HELP - Ask for Help at https://gitter.im/FreeCodeCamp/chinese
border没有高度属性。
这个项目的演示http://codepen.io/huluoyang/pen/GZbBwL
已经在Settings
里提前引入了野狗的js,建议提示出来。
不然刚刚接触很容易懵圈= =。
还有在注释里面给出野狗的官方开发文档的地址,引导阅读。
这样对新手要要友好很多。
I am wondering how to own a translation task? I want to own "basic-ziplines.json" translation but I cannot directly modify the wiki. Could you please consider changing the access permissions for wikis?
EDIT1: "各位感兴趣想参与翻译的可以在下方留言写上你想翻译的章节" How to do this?
Thanks much! 😄
Challenge Target the same element with multiple jQuery Selectors has an issue.
User Agent is: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.102 Safari/537.36
.
Please describe how to reproduce this issue, and include links to screenshots if possible.
My code:
<script>
$(document).ready(function() {
$("button").addclass("animated");
$(".btn").addclass("shake");
$("#target1").addclass("btn-primary");
});
</script>
<!-- Only change code above this line. -->
<div class="container-fluid">
<h3 class="text-primary text-center">jQuery Playground</h3>
<div class="row">
<div class="col-xs-6">
<h4>#left-well</h4>
<div class="well" id="left-well">
<button class="btn btn-default target" id="target1">#target1</button>
<button class="btn btn-default target" id="target2">#target2</button>
<button class="btn btn-default target" id="target3">#target3</button>
</div>
</div>
<div class="col-xs-6">
<h4>#right-well</h4>
<div class="well" id="right-well">
<button class="btn btn-default target" id="target4">#target4</button>
<button class="btn btn-default target" id="target5">#target5</button>
<button class="btn btn-default target" id="target6">#target6</button>
</div>
</div>
</div>
</div>
Challenge Uncomment HTML has an issue.
User Agent is: Mozilla/5.0 (Windows NT 5.1; rv:47.0) Gecko/20100101 Firefox/47.0
.
Please describe how to reproduce this issue, and include links to screenshots if possible.
My code:
-->
<h1>Hello World</h1>
-->
<h2>我家的猫咪</h2>
-->
<p>Hello Paragraph</p>
Challenge Steamroller has an issue.
User Agent is: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.8 Safari/537.36
.
Please describe how to reproduce this issue, and include links to screenshots if possible.
My code:
var arr1=[];
function steamroller(arr) {
// I'm a steamroller, baby
for(var i=0;i<arr.length;i++){
if(Array.isArray(arr[i])===false){
arr1.push(arr[i]);
}
else{
steamroller(arr[i]);
}
}
return arr1;
}
steamroller([1, [2], [3, [[4]]]]);
Challenge Repeat a string repeat a string has an issue.
User Agent is: Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.63 Safari/537.36
.
Please describe how to reproduce this issue, and include links to screenshots if possible.
My code:
var strs= '';
function repeat(str, num) {
// repeat after me
if(num<1){
return '';
}
for(var i =0;i<num;i++){
strs += str;
}
return strs;
}
repeat("abc", 3);
To Use this Template:
NOTE: ISSUES ARE NOT FOR CODE HELP - Ask for Help at https://gitter.im/FreeCodeCamp/chinese
在大家心目中,猫是慵懒的可爱的化身,它可以睡饱了再起来吃饭,可以逗趣小耗子,可以卖得了萌,使得了坏,这样百变的小怪兽就集结在一只宠物上,可猫可狗。
Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched.
If relevant, paste all of your challenge code in here
To Use this Template:
NOTE: ISSUES ARE NOT FOR CODE HELP - Ask for Help at https://gitter.im/FreeCodeCamp/chinese
和数组一样,有两种方式访问对象属性,一个是点操作符(.),一个是中括号操作符([])。
【Accessing Objects Properties with the Dot Operator】
If relevant, paste all of your challenge code in here
当前的感觉不太好升级啊。如何让内容与 FreeCodeCamp/FreeCodeCamp一直同步?每次人工覆盖更新?
Challenge Inform with the Paragraph Element has an issue.
User Agent is: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.102 Safari/537.36
.
Please describe how to reproduce this issue, and include links to screenshots if possible.
My code:
<h1>Hello World</h1>
<h2>我家的猫咪</h2>
<p>hello paragragh</p>
Challenge Understanding Case Sensitivity in Variables has an issue.
User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36
.
Please describe how to reproduce this issue, and include links to screenshots if possible.
My code:
// Declarations
var StUdLyCapVaR;
var properCamelCase;
var TitleCaseOver;
// Assignments
STUDLYCAPVAR = 10;
PRoperCAmelCAse = "A String";
tITLEcASEoVER = 9000;
var studlyCapVar;
var properCamelCase;
var titleCaseOver;
studlyCapVar = 10;
titleCaseOver = 9000;
properCamelCase = "A String";
var studlyCapVar;
var properCamelCase;
var titleCaseOver;
studlyCapVar = 10;
titleCaseOver = 9000;
properCamelCase = "A String";
我输入正确 怎么都过不去
https://freecodecamp.cn/email-signup
email: [email protected]‘
pwd: xxx
Challenge Friendly Date Ranges has an issue.
User Agent is: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36
.
Please describe how to reproduce this issue, and include links to screenshots if possible.
My code:
function makeFriendlyDates(arr) {
var month=["January","February","March","April","May","June","July","August","September","October","November","December"];
var dat=["st","nd","rd","th","th","th","th","th","th","th","th","th","th","th","th","th","th","th","th","th","th","th","th","th","th","th","th","th","th","th","th","th","th","th"];
var d1=arr[0].split("-");
var d2=arr[1].split("-");
if(parseInt(d1[0])==parseInt(d2[0])){
if(d1[1]==d2[1]){
if(d1[2]==d2[2]){
return [month[parseInt(d1[1])-1]+" "+parseInt(d1[2])+dat[parseInt(d1[2])-1]+", "+d1[0]];
}
return [month[parseInt(d1[1])-1]+" "+parseInt(d1[2])+dat[parseInt(d1[2])-1],parseInt(d2[2])+dat[parseInt(d2[2])-1]];
}else{
return [month[parseInt(d1[1])-1]+" "+parseInt(d1[2])+dat[parseInt(d1[2])-1]+", "+d1[0],month[parseInt(d2[1])-1]+" "+parseInt(d2[2])+dat[parseInt(d2[2])-1]];
}
}else if(parseInt(d2[0])-parseInt(d1[0])==1 && ((parseInt(d2[1])-parseInt(d1[1]))<0 || ((parseInt(d2[1])-parseInt(d1[1]))===0 && (parseInt(d2[2])-parseInt(d1[2]))<0))){
return [month[parseInt(d1[1])-1]+" "+parseInt(d1[2])+dat[parseInt(d1[2])-1],month[parseInt(d2[1])-1]+" "+parseInt(d2[2])+dat[parseInt(d2[2])-1]];
}else{
return [month[parseInt(d1[1])-1]+" "+parseInt(d1[2])+dat[parseInt(d1[2])-1]+", "+d1[0],month[parseInt(d2[1])-1]+" "+parseInt(d2[2])+dat[parseInt(d2[2])-1]+", "+d2[0]];
}
}
makeFriendlyDates(["2022-09-05", "2023-09-04"]);
//应返回 ["September 5th","September 4th"].
To Use this Template:
NOTE: ISSUES ARE NOT FOR CODE HELP - Ask for Help at https://gitter.im/FreeCodeCamp/chinese
If relevant, paste all of your challenge code in here
Challenge Inform with the Paragraph Element has an issue.
User Agent is: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.101 Safari/537.36
.
Please describe how to reproduce this issue, and include links to screenshots if possible.
My code:
<h1>Hello World</h1>
<h2>我家的猫咪</h2>
<P>Hello Paragraph</P>
Challenge Nest an Anchor Element within a Paragraph has an issue.
User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36
.
Please describe how to reproduce this issue, and include links to screenshots if possible.
My code:
<link href="https://fonts.googleapis.com/css?family=Lobster" rel="stylesheet" type="text/css">
<style>
.red-text {
color: red;
}
h2 {
font-family: Lobster, Monospace;
}
p {
font-size: 16px;
font-family: Monospace;
}
.thick-green-border {
border-color: green;
border-width: 10px;
border-style: solid;
border-radius: 50%;
}
.smaller-image {
width: 100px;
}
</style>
<h2 class="red-text">CatPhotoApp</h2>
<p>View more <a href="http://www.freecatphotoapp.com">cat photos</a></p>
<a href="http://www.freecatphotoapp.com">cat photos</a>
<img class="smaller-image thick-green-border" src="https://bit.ly/fcc-relaxing-cat">
<p class="red-text">Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.</p>
<p class="red-text">Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched.</p>
使用chrome浏览器,版本 51.0.2704.103 m。
https://freecodecamp.cn/challenges页面下无法输入字母、数字、符号、空格,而回车键、Ctrl键则都可以使用。
Challenge Change the Font Size of an Element has an issue.
User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:47.0) Gecko/20100101 Firefox/47.0
.
Please describe how to reproduce this issue, and include links to screenshots if possible.
My code:
<style>
.red-text {
color: red;
}
p{
font-size:16px;
}
p2{
font-size:16px;
}
</style>
<h2 class="red-text">我家的猫咪</h2>
<p class="red-text">在大家心目中,猫是慵懒的可爱的化身,它可以睡饱了再起来吃饭,可以逗趣小耗子,可以卖得了萌,使得了坏,这样百变的小怪兽就集结在一只宠物上,怎能不惹人怜爱。</p>
<p2>养动物有的时候,就是介于爱与恨之间,当你钦羡别人萌宠这么可爱的时候,你一定没有想过,狗狗和猫猫会到处拉屎,甚至会屯老鼠,啃鞋子,用爪子爬门,你不理它,它就挠你,你要对它发脾气,它会比你更来劲。所以,狗猫慎入,没有一定的准备,切勿随便去侍养动物。它们一旦认定你了,你就是它们的主人,如果你抛弃它们,它们必定心中重创。</p2>
Challenge Target Even Numbered Elements Using jQuery has an issue.
User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36
.
Please describe how to reproduce this issue, and include links to screenshots if possible.
My code:
<script>
$(document).ready(function() {
$("#target1").css("color", "red");
$("#target1").prop("disabled", true);
$("#target4").remove();
$("#target2").appendTo("#right-well");
$("#target5").clone().appendTo("#left-well");
$("#target1").parent().css("background-color", "red");
$("#right-well").children().css("color", "orange");
$("#left-well").children().css("color", "green");
// $(".target:nth-child(2)").addClass("animated bounce");
$(".target:even").addClass("animated shake");
});
</script>
<!-- Only change code above this line. -->
<div class="container-fluid">
<h3 class="text-primary text-center">jQuery Playground</h3>
<div class="row">
<div class="col-xs-6">
<h4>#left-well</h4>
<div class="well" id="left-well">
<button class="btn btn-default target" id="target1">#target1</button>
<button class="btn btn-default target" id="target2">#target2</button>
<button class="btn btn-default target" id="target3">#target3</button>
</div>
</div>
<div class="col-xs-6">
<h4>#right-well</h4>
<div class="well" id="right-well">
<button class="btn btn-default target" id="target4">#target4</button>
<button class="btn btn-default target" id="target5">#target5</button>
<button class="btn btn-default target" id="target6">#target6</button>
</div>
</div>
</div>
</div>
在这个题目(No repeats please)里我的代码都通过测试但是不能进入下一题,请问是什么原因?
Array.prototype.insert = function (index, item) {
this.splice(index, 0, item);
};
function permAlone(str) {
function isFlat(str) {
return str.split('').reduce(function(a,b){
if (a.result === false) {
return a;
}
if (a.char == b) {
return {"char":"", "result":false};
}
return {"char":b, "result":true};
}, {"char":"", "result":true}).result;
}
function deepCopy(arr) {
var newArr = [];
arr.forEach(function(a){
newArr.push(a);
});
return newArr;
}
function insertEle2Arr(arr, ele) {
var newArr = [];
for (var i = 0; i <= arr.length; i++) {
var cp = deepCopy(arr);
cp.insert(i, ele);
newArr.push(cp);
}
return newArr;
}
function allArr(arr) {
if (arr.length <= 1) {
return [arr];
}
var copy = deepCopy(arr);
var first = copy.shift();
var newArr = allArr(copy);
var ret_arr = [];
for (var i = 0; i < newArr.length; i++) {
var a = insertEle2Arr(newArr[i], first);
for(var j = 0; j < a.length; j++) {
ret_arr.push(a[j]);
}
}
return ret_arr;
}
return allArr(str.split('')).map(function(a){
return a.join('');
}).reduce(function(a, b){
if (isFlat(b)) {
return a+1;
}
return a;
}, 0);
}
是因为没翻译完吗 如果是想加入应该怎么做
Challenge Modify Array Data With Indexes has an issue.
User Agent is: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:45.0) Gecko/20100101 Firefox/45.0
.
Please describe how to reproduce this issue, and include links to screenshots if possible.
My code:
// 举例
var ourArray = [1,2,3];
ourArray[1] = 3; // ourArray now equals [1,3,3].
// Setup
var myArray = [1,2,3];
// Only change code below this line.
myArray[0] = "3";
Challenge Get JSON with the jQuery getJSON Method has an issue.
User Agent is: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36
.
Please describe how to reproduce this issue, and include links to screenshots if possible.
My code:
<script>
$(document).ready(function() {
$("#getMessage").on("click", function(){
// Only change code below this line.
// Only change code above this line.
});
});
</script>
<div class="container-fluid">
<div class = "row text-center">
<h2>Cat Photo Finder</h2>
</div>
<div class = "row text-center">
<div class = "col-xs-12 well message">
The message will go here
</div>
</div>
<div class = "row text-center">
<div class = "col-xs-12">
<button id = "getMessage" class = "btn btn-primary">
Get Message
</button>
</div>
</div>
</div>
Challenge Create a Set of Radio Buttons has an issue.
User Agent is: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36
.
Please describe how to reproduce this issue, and include links to screenshots if possible.
My code:
<link href="https://fonts.gdgdocs.com/css?family=Lobster" rel="stylesheet" type="text/css">
<style>
.red-text {
color: red;
}
h2 {
font-family: Lobster, Monospace;
}
p {
font-size: 16px;
font-family: Monospace;
}
.thick-green-border {
border-color: green;
border-width: 10px;
border-style: solid;
border-radius: 50%;
}
.smaller-image {
width: 100px;
}
</style>
<h2 class="red-text">CatPhotoApp</h2>
<p>Click here for <a href="#">cat photos</a>.</p>
<a href="#"><img class="smaller-image thick-green-border" alt="A cute orange cat lying on its back" src="/images/relaxing-cat.jpg"></a>
<p>Things cats love:</p>
<ul>
<li>cat nip</li>
<li>laser pointers</li>
<li>lasagna</li>
</ul>
<p>Top 3 things cats hate:</p>
<ol>
<li>flea treatment</li>
<li>thunder</li>
<li>other cats</li>
</ol>
<form action="/submit-cat-photo">
<input type="text" placeholder="cat photo URL" required>
<button type="submit">Submit</button><br>
<lable><input type="radio" name="indor-outdoor" value="indoor">indoor</lable>
<lable><input type="radio" name="indoor-outdoor">outdoor</lable>
</form>
Challenge Size your Images has an issue.
User Agent is: Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.101 Safari/537.36
.
Please describe how to reproduce this issue, and include links to screenshots if possible.
My code:
<link href="https://fonts.gdgdocs.com/css?family=Lobster" rel="stylesheet" type="text/css">
<style>
.red-text {
color: red;
}
}
h2 {
font-family: Lobster, Monospace;
}
p {
font-size: 16px;
font-family: Monospace;
}
</style>
.smaller-image {
width: 100px;
}
<h2 class="red-text">CatPhotoApp</h2>
<img src="/images/relaxing-cat.jpg">
<p class="red-text">在大家心目中,猫是慵懒的可爱的化身,它可以睡饱了再起来吃饭,可以逗趣小耗子,可以卖得了萌,使得了坏,这样百变的小怪兽就集结在一只宠物上,怎能不惹人怜爱。</p>
<p class="red-text">养动物有的时候,就是介于爱与恨之间,当你钦羡别人萌宠这么可爱的时候,你一定没有想过,狗狗和猫猫会到处拉屎,甚至会屯老鼠,啃鞋子,用爪子爬门,你不理它,它就挠你,你要对它发脾气,它会比你更来劲。所以,狗猫慎入,没有一定的准备,切勿随便去侍养动物。它们一旦认定你了,你就是它们的主人,如果你抛弃它们,它们必定心中重创。</p>
Challenge Sum All Numbers in a Range has an issue.
User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/601.7.7 (KHTML, like Gecko) Version/9.1.2 Safari/601.7.7
.
Please describe how to reproduce this issue, and include links to screenshots if possible.
My code:
function sumAll(arr) {
return 1;
}
sumAll([1, 4]);
Challenge No repeats please has an issue.
User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.106 Safari/537.36
.
Please describe how to reproduce this issue, and include links to screenshots if possible.
My code:
var num = 0;
function permAlone(str) {
permutate(str.split(""),0,callback);
return num;
}
function swap(arr,i,j){
var temp;
temp = arr[i];
arr[i] = arr[j];
arr[j] = temp;
}
function permutate(listArr,start,callback){
var i, length = listArr.length;
if (start === listArr.length-1)
callback(listArr);
else{
for(i = start; i < length; i++){
swap(listArr,start,i);
permutate(listArr,start+1,callback);
swap(listArr,i,start);
}
}
}
function callback(arr){
if(arr.join("").match(/(.)\1/) === null)
num++;
}
permAlone("aabb");
The issue is when I get the right value and return it, the system tell me that I not pass it.
https://freecodecamp.cn/challenges/finding-a-remainder-in-javascript
remainder 的值应该等于2 2
多了个2
。
Chrome 52.0.2743.116 (64-bit)
MacBook Pro(Retina 显示屏,13 英寸,2015 年初期) 10.11.5
Challenge Change the Color of Text has an issue.
User Agent is: Mozilla/5.0 (Windows NT 5.1; rv:47.0) Gecko/20100101 Firefox/47.0
.
Please describe how to reproduce this issue, and include links to screenshots if possible.
My code:
<h2>我家的猫咪</h2>
<h2 style="color:red">CatphotoApp<h2/>
<p>在大家心目中,猫是慵懒的可爱的化身,它可以睡饱了再起来吃饭,可以逗趣小耗子,可以卖得了萌,使得了坏,这样百变的小怪兽就集结在一只宠物上,怎能不惹人怜爱。</p>
Challenge Inform with the Paragraph Element has an issue.
User Agent is: Mozilla/5.0 (Windows NT 5.1; rv:47.0) Gecko/20100101 Firefox/47.0
.
Please describe how to reproduce this issue, and include links to screenshots if possible.
My code:
<h1>Hello World</h1>
<h2>我家的猫咪</h2>
p<h3>hello paragraph<h3/>
Challenge Escape Sequences in Strings has an issue.
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.63 Safari/537.36
.
Please describe how to reproduce this issue, and include links to screenshots if possible.
My code:
var myStr; // Change this line
myStr ="\\ \t \t \r \n";
这个挑战我花了至少30分钟,然后才写出来这个挑战的代码。
首先我在 ""这个问题上花了20分钟,可能是因为我的粗心,没看清要求造成的。
其次在是难在 \t \t这个问题上,因为我把它写成了一个,你们设置是写成了2个。 我没有说你们设计这个题目不好,只是我感觉你们如果把 \t \t改成 \t 会让学习者更加容易理解。 感觉你们的付出。
Challenge Word Blanks has an issue.
User Agent is: Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.82 Safari/537.36
.
Please describe how to reproduce this issue, and include links to screenshots if possible.
My code:
function wordBlanks(myNoun, myAdjective, myVerb, myAdverb) {
var result ="";
// Your code below this line
// Your code above this line
return result;
}
// Change the words here to test your function
wordBlanks("dog", "big", "ran", "quickly");
Challenge Profile Lookup has an issue.
User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36
.
Please describe how to reproduce this issue, and include links to screenshots if possible.
My code:
//Setup
var contacts = [
{
"firstName": "Akira",
"lastName": "Laine",
"number": "0543236543",
"likes": ["Pizza", "Coding", "Brownie Points"]
},
{
"firstName": "Harry",
"lastName": "Potter",
"number": "0994372684",
"likes": ["Hogwarts", "Magic", "Hagrid"]
},
{
"firstName": "Sherlock",
"lastName": "Holmes",
"number": "0487345643",
"likes": ["Intriguing Cases", "Violin"]
},
{
"firstName": "Kristian",
"lastName": "Vos",
"number": "unknown",
"likes": ["Javascript", "Gaming", "Foxes"]
}
];
function lookUp(firstName, prop){
var a = 0;
var b = 0;
for(var i = 0; i<contacts.length;i++){
if(contacts[i].firstName == firstName){
a = 1;
if(contacts[i].prop){
b = 1;
return contacts[i].prop;
}
}
}
if(a === 1 && b != 1){
return "No such property";
}
if(a === 0){
return "No such contact";
}
// Only change code below this line
// Only change code above this line
}
// Change these values to test your function
lookUp("Akira", "likes");
We've got a couple of issues opened coming from this clone of Free Code Camp. Please change the appropriate files so they direct here.
This fork is months out of date and many issues here may have been fixed in the original Free Code Camp.
Challenge Stand in Line has an issue.
User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36
.
Please describe how to reproduce this issue, and include links to screenshots if possible.
My code:
function queue(arr, item) {
// Your code here
arr.push(item);
return item; // Change this line
}
// Test Setup
var testArr = [1,2,3,4,5];
// Display Code
console.log("Before: " + JSON.stringify(testArr));
console.log(queue(testArr, 6)); // Modify this line to test
console.log("After: " + JSON.stringify(testArr));
Challenge Use Responsive Design with Bootstrap Fluid Containers has an issue.
User Agent is: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:48.0) Gecko/20100101 Firefox/48.0
.
Please describe how to reproduce this issue, and include links to screenshots if possible.
My code:
<link href="http://fonts.googleapis.com/css?family=Lobster" rel="stylesheet" type="text/css">
<style>
.red-text {
color: red;
}
h2 {
font-family: Lobster, Monospace;
}
p {
font-size: 16px;
font-family: Monospace;
}
.thick-green-border {
border-color: green;
border-width: 10px;
border-style: solid;
border-radius: 50%;
}
.smaller-image {
width: 100px;
}
</style>
<div class="container-fluid">
<h2 class="red-text">CatPhotoApp</h2>
<p>Click here for <a href="#">cat photos</a>.</p>
<a href="#"><img class="smaller-image thick-green-border" src="/images/relaxing-cat.jpg"></a>
<p>Things cats love:</p>
<ul>
<li>cat nip</li>
<li>laser pointers</li>
<li>lasagna</li>
</ul>
<p>Top 3 things cats hate:</p>
<ol>
<li>flea treatment</li>
<li>thunder</li>
<li>other cats</li>
</ol>
<form action="/submit-cat-photo">
<label><input type="radio" name="indoor-outdoor"> Indoor</label>
<label><input type="radio" name="indoor-outdoor"> Outdoor</label>
<label><input type="checkbox" name="personality"> Loving</label>
<label><input type="checkbox" name="personality"> Lazy</label>
<label><input type="checkbox" name="personality"> Crazy</label>
<input type="text" placeholder="cat photo URL" required>
<button type="submit">Submit</button>
</form>
</div>
Challenge Create a Set of Radio Buttons has an issue.
User Agent is: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.101 Safari/537.36
.
Please describe how to reproduce this issue, and include links to screenshots if possible.
My code:
<link href="https://fonts.gdgdocs.com/css?family=Lobster" rel="stylesheet" type="text/css">
<style>
.red-text {
color: red;
}
h2 {
font-family: Lobster, Monospace;
}
p {
font-size: 16px;
font-family: Monospace;
}
.thick-green-border {
border-color: green;
border-width: 10px;
border-style: solid;
border-radius: 50%;
}
.smaller-image {
width: 100px;
}
</style>
<h2 class="red-text">CatPhotoApp</h2>
<p>Click here for <a href="#">cat photos</a>.</p>
<a href="#"><img class="smaller-image thick-green-border" alt="A cute orange cat lying on its back" src="/images/relaxing-cat.jpg"></a>
<p>Things cats love:</p>
<ul>
<li>cat nip</li>
<li>laser pointers</li>
<li>lasagna</li>
</ul>
<p>Top 3 things cats hate:</p>
<ol>
<li>flea treatment</li>
<li>thunder</li>
<li>other cats</li>
</ol>
<form action="/submit-cat-photo">
<input type="text" placeholder="cat photo URL" required>
<button type="submit">Submit</button>
<lable><input type="radio" name="indoor-outdoor">indoor</lable>
<lable><input type="radio" name="indoor-outdoor">outdoor</lable>
</form>
Challenge Inform with the Paragraph Element has an issue.
User Agent is: Mozilla/5.0 (Windows NT 5.1; rv:47.0) Gecko/20100101 Firefox/47.0
.
Please describe how to reproduce this issue, and include links to screenshots if possible.
My code:
<h1>Hello World</h1>
<h2>我家的猫咪</h2>
Hello woeld
<h2>hello paragraph<h2/>p
View more cat photos
在大家心目中,猫是慵懒的可爱的化身,它可以睡饱了再起来吃饭,可以逗趣小耗子,可以卖得了萌,使得了坏,这样百变的小怪兽就集结在一只宠物上,怎能不惹人怜爱。
养动物有的时候,就是介于爱与恨之间,当你钦羡别人萌宠这么可爱的时候,你一定没有想过,狗狗和猫猫会到处拉屎,甚至会屯老鼠,啃鞋子,用爪子爬门,你不理它,它就挠你,你要对它发脾气,它会比你更来劲。所以,狗猫慎入,没有一定的准备,切勿随便去侍养动物。它们一旦认定你了,你就是它们的主人,如果你抛弃它们,它们必定心中重创。
rt
Challenge Record Collection has an issue.
User Agent is: Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.80 Safari/537.36
.
Please describe how to reproduce this issue, and include links to screenshots if possible.
My code:
// Setup
var collection = {
2548: {
album: "Slippery When Wet",
artist: "Bon Jovi",
tracks: [
"Let It Rock",
"You Give Love a Bad Name"
]
},
2468: {
album: "1999",
artist: "Prince",
tracks: [
"1999",
"Little Red Corvette"
]
},
1245: {
artist: "Robert Palmer",
tracks: [ ]
},
5439: {
album: "ABBA Gold"
}
};
// Keep a copy of the collection for tests
var collectionCopy = JSON.parse(JSON.stringify(collection));
// Only change code below this line
function update(id, prop, value) {
if(id==5439)
collection[id].pop(value);
return collection;
}
// Alter values below to test your code
update(5439, "artist", "ABBA");
它也有一个嵌套的
formarts
的数组。
翻译是个挺花费精力的事情,我一个人也不可能有时间翻译完整个课程。
所以我只是搭台,请你们来唱戏。
至于戏能唱得有多精彩,全靠你们自己的发挥。
这是个兴趣驱动的社区,你可以做任何你能想到的事情。
课程翻译、网站翻译、修改源代码、添加国内CDN、提升性能等等。
Leaning by doing! Wish you go go go!
One of our mostly harmless robots seems to think you are not a human.
Because of that, it’s hidden your profile from the public. If you really are human, please contact support to have your profile reinstated. We promise we won’t require DNA proof of your humanity.
Need help with the huluoyang/freecodecamp.cn project?
You could get in contact with @huluoyang. You could open an issue or send them an email.
Challenge Where do I belong has an issue.
User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_5) AppleWebKit/601.6.17 (KHTML, like Gecko) Version/9.1.1 Safari/601.6.17
.
Please describe how to reproduce this issue, and include links to screenshots if possible.
My code:
function where(arr, num) {
// Find my place in this sorted array.
var sort = arr.sort(function compare(a,b){
return a >= b;
});
console.log("sort="+sort);
var i= 0;
for( ;i<sort.length;i++){
if(num<=sort[i]) {
break;
}
}
return i;
}
where([5,3,20,3], 5);
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.