Coder Social home page Coder Social logo

huluoyang / freecodecamp.cn Goto Github PK

View Code? Open in Web Editor NEW
5.5K 222.0 280.0 32.5 MB

随着FCC中文社区的快速发展和更多小伙伴的崛起,此项目已从个人项目升级到团队项目。详情请移步:

Home Page: https://github.com/FreeCodeCampChina/freecodecamp.cn

JavaScript 55.72% CSS 26.89% HTML 17.39%

freecodecamp.cn's Introduction

Throughput Graph

Join the chat at https://gitter.im/freecodecamp/freecodecamp

freecodecamp.cn

欢迎来到freecodecamp中文社区(https://freecodecamp.cn)

freecodecamp是什么?

freecodecamp 是一个自由的开源编程社区,它致力于抹平教育差距,

让像你我一样的平凡人也能享受到花费巨资才可能享受到的优质教育。

freecodecamp的特点

freecodecamp最大的特点是它本身就是个开源项目。

我们不仅可以在freecodecamp上学习,还可以利用所学的知识来把freecodecamp建设得更好。

学编程的都知道编程语言之间的区别很大程度上体现在语言本身是否能完成自举。

对于语言来说,自举分为3个层次:

1、调用--自己调用自己(编程语言中常见的递归操作)

2、改进--自己改进自己(编程语言的更新迭代)

3、实现--自己实现自己(实现编程语言自己的解释器或编译器)

对于个人来说,自举也分为3个层次:

1、调用--自己调用自己的独立思考能力、自学能力。

2、改进--自己经常review自己,意识到自己的不足,勇敢走出自己的舒适区。

3、实现--做一个作品来证明自己的能力,实现自己的人生价值。

为什么要创建freecodecamp中文社区?

freecodecamp发展速度太快了,从1月五万star到3月排第二,现在已经超越bootstrap成为github上star最多的项目了。

github这个全球最大的编程社交网站上诞生了全球最大的编程学习网站freecodecamp。

我和各位小伙伴一样都先在freecodecamp英文社区上学习,

我用谷歌翻译和有道词典来解决英文问题,看得非常吃力、理解得也有些生硬,学习效率较低。

当我学到Counting Cards(21点算法)时,发现英文的讲解怎么也看不懂,在网上查找大量资料后,我才搞明白。

我瞬间产生了建立freecodecamp中文社区的念头,

这样许多同学就可以少走很多弯路,直接获取最有效的学习路径。

freecodecamp中文社区发展历程

时间 done
2016.3.22 基于freecodecamp代码贡献文档和优才公开课视频在本机搭建freecodecamp项目
2016.3.28 基于花生壳动态域名解析服务在极路由搭建临时网站:freecodecamp.jios.org:3000
2016.4.1 基于邹治免费提供的域名(freecodecamp.cn)和美国扳道工VPS上线freecodecamp中文社区
2016.4.2 基于let's encryto给freecodecamp中文社区添加https。
2016.4.5 基于优才公开课视频给freecodecamp中文社区添加nginx。
2016.4.6 和freecodecamp创始人quincy沟通翻译规范、提交流程。
2016.4.7 搜索freecodecamp issue中有关中文的翻译和提交,才发现2015.10月份就已经有人做中文翻译的事情了。
2016.4.10 不再纠结于英文社区翻译规范和提交流程,独立思考、独立发展。
2016.4.11 正式开始翻译网站首页:learning by doing。
2016.4.13 正式开始翻译课程第一部分:getting started。
2016.4.16 写了第一版翻译规范和参与流程。
2016.4.17 开始翻译课程第二部分:html5 + css3。
2016.4.24 参加猿生态在北京车库咖啡举办的第一次freecodecamp线下活动,结识了晋剑、jason、海良等小伙伴。
2016.4.25 通过freecodecamp中文聊天室招募到第一位参与翻译的小伙伴tegrat
2016.4.28 胡可同学加入翻译志愿组,贡献翻译工具。
2016.4.29 受胡可同学的感染,我写了simleJson.js来轻松干掉json文件的冗余部分。
2016.5.8 受晋剑同学的邀请,我来到苏州,加入猿生态,负责freecodecamp中文社区的翻译和开发。
2016.6.5 启动了苏州首届全民编程挑战赛

志愿者招募

能坚持看到这里的都是非常有耐心的人,你应该给自己的努力点个赞!

我们正在招募翻译志愿者,如果你想考察下自己的英文水平,可以尝试利用github来参与协作翻译。

传送门:https://github.com/huluoyang/freecodecamp.cn/wiki

我们也在招募代码贡献者,如果你想考察下自己的技术水平,可以尝试clone代码到本机跑个站点看看。

传送门:https://github.com/huluoyang/freecodecamp.cn/blob/dev/CONTRIBUTING.md

那些值得尊敬的人

感谢优才网CEO伍星,是他在2016年1月录制的公开课视频才让我接触到freecodecamp。

感谢走之网的邹治,是他无偿提供了freecodecamp.cn域名。

感谢freecodecamp开源项目的创始人QuincyLarson,是他以一己之力开创了这个开源项目。

感谢freecodecamp开源项目的贡献者,是他们的参与让这个项目得以完善、发展。

感谢freecodecamp中文社区的翻译者,是他们的参与让这个项目得以在**生根、发芽。

freecodecamp.cn's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

freecodecamp.cn's Issues

不会啊看不懂

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>

[183] Stand in Line 在 提示文本queue(testArr, 10) 之后, myArr[4] 的值应该是 10 中 myArr[4]应该是testArr[4]

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));

is p element's problem?

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>

what should I do?please help me!!

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");

这个挑战设计有些不合理

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 会让学习者更加容易理解。 感觉你们的付出。

欢迎加入FCC中文社区!

翻译是个挺花费精力的事情,我一个人也不可能有时间翻译完整个课程。
所以我只是搭台,请你们来唱戏。
至于戏能唱得有多精彩,全靠你们自己的发挥。
这是个兴趣驱动的社区,你可以做任何你能想到的事情。
课程翻译、网站翻译、修改源代码、添加国内CDN、提升性能等等。
Leaning by doing! Wish you go go go!

Size your Images这关不会

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>

第六个结果:makeFriendlyDates(["2022-09-05", "2023-09-04"]) 应返回 ["September 5th","September 4th"].

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"].

这道题完全不理解什么意思,不知道要获得什么样的结果

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 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>

Add Borders Around your Elements Complete

FreeCodeCamp Issue template

To Use this Template:

  • Fill out what you can
  • Delete what you do not fill out

NOTE: ISSUES ARE NOT FOR CODE HELP - Ask for Help at https://gitter.im/FreeCodeCamp/chinese

Issue Description

  • When Issue Happens
  • Steps To Reproduce

Browser Information

  • Browser Name, Version
  • Operating System

Your Code

border没有高度属性。

Screenshot

我在Import a Google Font这一节碰到问题了~原因是中文版的作业里要我们引入的link的地址不对

FreeCodeCamp Issue template

To Use this Template:

  • Fill out what you can
  • Delete what you do not fill out

NOTE: ISSUES ARE NOT FOR CODE HELP - Ask for Help at https://gitter.im/FreeCodeCamp/chinese

Issue Description

Your Code

<style> .red-text { color: red; } h2 { font-family: Lobster; } p { font-size: 16px; font-family: Monospace; } </style>

CatPhotoApp

在大家心目中,猫是慵懒的可爱的化身,它可以睡饱了再起来吃饭,可以逗趣小耗子,可以卖得了萌,使得了坏,这样百变的小怪兽就集结在一只宠物上,可猫可狗。

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

Screenshot

can not run tests

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 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>

The first line <link href="http://fonts.googleapis.com/css?family=Lobster" rel="stylesheet" type="text/css"> should be replaced as <link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css"/>

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>

All case passed but still can not go next.

在这个题目(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);
}

Screenshot

2016-08-12 17 12 06

我觉得我程序没问题,但是结果是错的

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");

the system shows "Only add one class with each of your three selectors.",Idon't know where's the problem.

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>

系统bug

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";
我输入正确 怎么都过不去

queue next stop what do ?

FreeCodeCamp Issue template

To Use this Template:

  • Fill out what you can
  • Delete what you do not fill out

NOTE: ISSUES ARE NOT FOR CODE HELP - Ask for Help at https://gitter.im/FreeCodeCamp/chinese

Issue Description

  • When Issue Happens
  • Steps To Reproduce

Browser Information

  • Browser Name, Version
  • Operating System

Your Code

If relevant, paste all of your challenge code in here

Screenshot

发现一个BUG,答案是对的但是通不过

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]]]]);

One of our mostly harmless robots seems to think you are not a human.

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.

issue report!

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.

my exercise

<style> h1{color:red;} p{color:blue;} </style>

Like
Info

this is heading

this is heading

this is heading

this is paragraph


this is paragraph


预文本格式,就会保留空格 和换行

。

computer code


keyboard input


teletype text


computer variable




跳转到书签

请联系:conanskyforce.
网址:
conan.com
地址:北京市海淀区
**,北京

cha.


mc


下一行会从右往左输出


我就要从右往左输出!

长引用:

黄沙百战穿金甲,不破楼兰终不还,后宫佳丽三千人,铁杵磨成绣花针。

短引用:
百年孤独






百度一下
这就是书签


<a href="/index.html target="_top">跳出框架




发送邮件以Hello World!开头

这是另一个 mailto 链接: 发送邮件!抄送,秘密抄送,主题+内容



一幅图像:

另一幅图像动图:

我是文字

图在左边

图在右边


调整图像大小





200*200大鼠标

我的Facebook


一列三列

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


this is a link

wrong?

<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>

CatPhotoApp

View more cat photos

在大家心目中,猫是慵懒的可爱的化身,它可以睡饱了再起来吃饭,可以逗趣小耗子,可以卖得了萌,使得了坏,这样百变的小怪兽就集结在一只宠物上,怎能不惹人怜爱。

养动物有的时候,就是介于爱与恨之间,当你钦羡别人萌宠这么可爱的时候,你一定没有想过,狗狗和猫猫会到处拉屎,甚至会屯老鼠,啃鞋子,用爪子爬门,你不理它,它就挠你,你要对它发脾气,它会比你更来劲。所以,狗猫慎入,没有一定的准备,切勿随便去侍养动物。它们一旦认定你了,你就是它们的主人,如果你抛弃它们,它们必定心中重创。

IDE测试成功

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);

ccc

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>

who could tell me how I can pass the test?

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>

数组怎么用点操作符访问?

FreeCodeCamp Issue template

To Use this Template:

  • Fill out what you can
  • Delete what you do not fill out

NOTE: ISSUES ARE NOT FOR CODE HELP - Ask for Help at https://gitter.im/FreeCodeCamp/chinese

Issue Description

和数组一样,有两种方式访问对象属性,一个是点操作符(.),一个是中括号操作符([])。

【Accessing Objects Properties with the Dot Operator】

Browser Information

  • Browser Name, Version
  • Operating System

Your Code

If relevant, paste all of your challenge code in here

Screenshot

kbd

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/>

CSS中索引是从1开始的,但JS中索引是从0开始的,所以odd(奇数)代表2、4、6···,even(偶数)代表1、3、5···

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>

我的没有图片看不懂

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

i don't understand this answer right?

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);

How to own a translation task?

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! 😄

"3" is ok

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";

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.