Git Product home page Git Product logo

freecodecamp.cn's People

Contributors

abhisekp avatar aldraco avatar alistermada avatar aryanj-nyc avatar benmcmahon100 avatar brandenbyers avatar bugron avatar darthmeme avatar ddaems avatar dokkillo avatar erictleung avatar generalzero avatar greenkeeperio-bot avatar hq-dev avatar huluoyang avatar issyl0 avatar jerrybendy avatar justinian336 avatar ltegman avatar mrrenter avatar natac13 avatar patsul12 avatar quincylarson avatar raisedadead avatar sahat avatar saintpeter avatar tegrat avatar terakilobyte avatar vtamara avatar workcheng avatar

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

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

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

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

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>

不会啊怎么做

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>

发现一个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]]]]);

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

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

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

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

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

第六个结果: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"].

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

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>

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>

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>

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

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

能不能在问题底下用中文?它是英文的

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>

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>

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>

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.

不会啊看不懂

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>

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

这个挑战设计有些不合理

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

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

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>

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>

我的没有图片看不懂

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

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

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

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

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

欢迎加入FCC中文社区!

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

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.

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

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.