Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Aug 17 09:33
    User @bjorno43 unbanned @linkin-park
  • Jun 20 21:19
    @bjorno43 banned @shenerd140
  • May 10 09:13
    @bjorno43 banned @zhaokunhaoa
  • Apr 25 17:12
    @mstellaluna banned @cmal
  • Apr 01 18:11
    thecodingaviator labeled #31179
  • Apr 01 18:11
    thecodingaviator labeled #31179
  • Apr 01 18:09
    thecodingaviator commented #31179
  • Apr 01 18:09
    thecodingaviator labeled #31182
  • Apr 01 18:09
    thecodingaviator labeled #31182
  • Apr 01 18:07
    thecodingaviator commented #31182
  • Apr 01 18:07
    thecodingaviator labeled #31190
  • Apr 01 18:07
    thecodingaviator labeled #31190
  • Apr 01 18:07
    thecodingaviator commented #31190
  • Apr 01 18:05
    thecodingaviator commented #31157
  • Apr 01 18:04

    thecodingaviator on master

    remove A (#31157) (compare)

  • Apr 01 18:04
    thecodingaviator closed #31157
  • Apr 01 18:04
    thecodingaviator closed #33788
  • Apr 01 18:04
    thecodingaviator commented #33788
  • Apr 01 18:02
    thecodingaviator closed #31059
  • Apr 01 18:02
    thecodingaviator commented #31059
Saurabh Parihar
@parihars
https://coderpad.io/R3ERDJ79 join here and please help me in solving this problem
Kelvin-penang
@Kelvin-penang
This message was deleted
Myuuks
@Myuuks

function wordBlanks(myNoun, myAdjective, myVerb, myAdverb) {
var result = "";
// Your code below this line

result = "when i saw a " + myAdjective + myNoun + "i " + myVerb + myAdverb;

// Your code above this line
return result;
}

// Change the words here to test your function
wordBlanks("dog ", "big ", "ran ", "quickly ");

Blauelf
@Blauelf
@Kelvin-penang You can type ``` without it being interpreted by using \ as an escape character.
Saurabh Parihar
@parihars
Blauelf
@Blauelf
@Myuuks Please put a line of triple backticks in front of your code, and one below, add line breaks using Shift+Return.
Markus Kiili
@Masd925
@parihars contacts is an array. Make a standard for loop over array indices.
Kelvin-penang
@Kelvin-penang
ok thanks @Blauelf I need help on my splitting exercise tho..:sweat_smile:
CamperBot
@camperbot
kelvin-penang sends brownie points to @blauelf :sparkles: :thumbsup: :sparkles:
:star2: 1826 | @blauelf |http://www.freecodecamp.com/blauelf
Saurabh Parihar
@parihars
@Masd925 please join on that link and help me
Kelvin-penang
@Kelvin-penang
can anybody help me in the splitting inception?
Myuuks
@Myuuks
@Blauelf my english is not great sorry xD
Blauelf
@Blauelf
@parihars Why don't you post the code here on chat?
Saurabh Parihar
@parihars

//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 lookUpProfile(firstName, prop){
// Only change code below this line
for(i=0;i<contact.length;i++)

// Only change code above this line
}

// Change these values to test your function
lookUpProfile("Akira", "likes");

zhangx007
@zhangx007
hello,i am new here
Markus Kiili
@Masd925
@parihars It is contacts.
Saurabh Parihar
@parihars
@Masd925 yeah i m changing it
Markus Kiili
@Masd925
@parihars Then figure out how to access one contact inside the array of contacts.
Blauelf
@Blauelf
@Myuuks
```js
function yourCode(arg1) {
var foo;
return "bar";
}
```
becomes
function yourCode(arg1) {
  var foo;
  return "bar";
}
Myuuks
@Myuuks
allright thanks
Keone Martin
@Athaman
sorry, wandered off for a bit
Myuuks
@Myuuks
function wordBlanks(myNoun, myAdjective, myVerb, myAdverb) {
  var result = "";
  // Your code below this line

 result = "when i saw a " + myAdjective  + myNoun + "i " + myVerb + myAdverb;

  // Your code above this line
  return result;
}

// Change the words here to test your function
wordBlanks("dog ", "big ", "ran ", "quickly ");
it works but
Keone Martin
@Athaman
remember myuuks if you take "one word" + "another word" you get "one wordanother word" so when you add two words together which are stored as variables, like myAdjective and myNoun, you need to use myAdjective + " " + myNoun
Darth Skywalker
@adityaparab
@parihars :smile:
for(var i=0;i<contacts.length;i++) {
       if(firstName == contacts[i].firstName){
             return contacts[i][prop];
       }
}
Rohan Gayen
@WapmasterRohan

Caesars cipher

function rot13(str) { // LBH QVQ VG!
  for(var i=0;i<str.length;i++) {
    if(str.charCodeAt(i) >= 65 && str.charCodeAt(i) <= 90) {
      if(str.charCodeAt(i) < 78) {
        str[i] = String.fromCharCode(str.charCodeAt(i) + 13);
      }
      else {
        str[i] = String.fromCharCode(str.charCodeAt(i) - 13);
      }
    }
  }
  return str;
}

// Change the inputs below to test
rot13("SERR PBQR PNZC");

what is the problem?
TypeError: Cannot assign to read only property '0' of string 'SERR PBQR PNZC'

Saurabh Parihar
@parihars
there is also else condition
@adityaparab
Darth Skywalker
@adityaparab
@parihars : Sorry I don't know the problem statement. I just fixed syntax and semantic errors.
Myuuks
@Myuuks
is that better @Athaman :
function wordBlanks(myNoun, myAdjective, myVerb, myAdverb) {
  var result = "";
  // Your code below this line

 result = "when i saw a " + myAdjective+ "" + myNoun + "i " + myVerb + "" + myAdverb;

  // Your code above this line
  return result;
}

// Change the words here to test your function
wordBlanks("dog", "big", "ran", "quickly");
Saurabh Parihar
@parihars
@adityaparab No problem buddy Thanks!!
CamperBot
@camperbot
parihars sends brownie points to @adityaparab :sparkles: :thumbsup: :sparkles:
:cookie: 258 | @adityaparab |http://www.freecodecamp.com/adityaparab
Myuuks
@Myuuks
function wordBlanks(myNoun, myAdjective, myVerb, myAdverb) {
  var result = "";
  // Your code below this line

 result = "when i saw a " + myAdjective + "" + myNoun + "i " + myVerb + "" + myAdverb;

  // Your code above this line
  return result;
}

// Change the words here to test your function
wordBlanks("dog", "big", "ran", "quickly");
Keone Martin
@Athaman
"" is no space " " is a space
Myuuks
@Myuuks
ok :)
Keone Martin
@Athaman
also you'll need a space in front of i so " i "
this challenge is just to make people aware of how annoying joining strings can be :D
cnj1987
@cnj1987
Can anyone help me? D:
Myuuks
@Myuuks
yeah it's xD
Keone Martin
@Athaman
@cnj1987 what do you need?
Rex
@RexChip
<div id="wrapper">

<table id="records">
<thead>
<tr>
<th class="long-cell">Input</th>
<th class="long-cell">E-Mail</th>
</tr>
</thead>
<tfoot>
<tr>
<td colspan="3" style="padding:10px;">
<button type="button" onclick="Normalizer.clear();">Clear all history</button>
</td>
<td><div id="pagination">test</div></td>
</tr>
</tfoot>
<tbody></tbody>
</table>
<footer>
</footer>
</div>
cnj1987
@cnj1987

Thanks @Athaman :)

Call the processArg function with an argument of 7 and assign its return value to the variable processed.

// Example
var changed = 0;

function change(num) {
  return (num + 5) / 3;
}

changed = change(10);

// Setup
var processed = 0;

function processArg(num) {
  return (num + 3) / 5;
}

// Only change code below this line


processArg(7);
return processed;
CamperBot
@camperbot
cnj1987 sends brownie points to @athaman :sparkles: :thumbsup: :sparkles:
:cookie: 407 | @athaman |http://www.freecodecamp.com/athaman
Rohan Gayen
@WapmasterRohan
can anyone help me??
Rex
@RexChip
this is my code, it will make some data like : test at gmail com -> test@gmail.com , in tbody, i don't know how to add to pagination
can anyone tell me how to add to pagination ? thank you
Myuuks
@Myuuks
@Athaman on this site we only use var when i tryed to learn we used : String , char & others stuffs, that's why i'm a bit lost