Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Aug 17 09:32
    User @bjorno43 unbanned @linkin-park
  • Jun 20 21:19
    @bjorno43 banned @shenerd140
  • Apr 25 17:13
    @mstellaluna banned @cmal
  • Jan 08 22:05
    @mstellaluna banned @dertiuss323
  • Nov 07 2018 04:42
    User @texas2010 unbanned @ows-ali
  • Nov 02 2018 16:25
    @texas2010 banned @ows-ali
  • Oct 12 2018 05:50
    @bjorno43 banned @NACH74
  • Oct 05 2018 23:02
    @mstellaluna banned @JomoPipi
  • Sep 16 2018 12:21
    @bjorno43 banned @yash-kedia
  • Sep 16 2018 12:16
    @bjorno43 banned @vnikifirov
  • Sep 05 2018 08:12
    User @bjorno43 unbanned @androuino
  • Sep 05 2018 07:38
    @bjorno43 banned @androuino
  • Aug 23 2018 16:57
    User @bjorno43 unbanned @rahuldkjain
  • Aug 23 2018 16:23
    @bjorno43 banned @rahuldkjain
  • Jul 29 2018 14:13
    User @bjorno43 unbanned @jkyereh
  • Jul 29 2018 01:00
    @bjorno43 banned @jkyereh
  • Jul 10 2018 22:09
    @bjorno43 banned @manafn
  • Jul 06 2018 15:20
    @texas2010 banned @imlegend19
  • Jul 03 2018 12:28
    @bjorno43 banned @vbvmatta
  • Jun 29 2018 13:54
    @bjorno43 banned @OGTechnoBoy
dinesh
@1532j0004kg
str value?
tell anyone str
h1tag
@h1tag
@1532j0004kg which function and on which line?
Dardan Demiri
@dardandmr
@HansGrubername
dinesh
@1532j0004kg
i shared the link check it out
Dardan Demiri
@dardandmr
The x is not defined
dinesh
@1532j0004kg
@h1tag
Dardan Demiri
@dardandmr
function rot13(str) {
  var deciphered = "";

  for (let i=0; i<str.length; i++) {
   var character = str.charCodeAt(i);
    if (character < 65 || character > 90) {
        deciphered.concat(String.fromCharCode(character));
      }
    else if (character < 78) {
        deciphered.concat(String.fromCharCode(character + 13));
      }
    else { 
        deciphered.concat(String.fromCharCode(x - 13));  //  <<< This X is not defined  
      }
   }

  console.log(deciphered);
}
@HansGrubername
Marianissimus
@Marianissimus
@HansGrubername I wonder if you could simplify the code by using a simple deciphered += string.fromCharCode... etc instead of concat.
Ken Haduch
@khaduch
@1532j0004kg - if you don't put the new keyword in there, then it just runs the function and the return value (which you don't have, so defaults to undefined) is stored in the variable mangoFruit. Then you are trying to use a property of undefined, which doesn't exist. If you put the new keyword in there, then it creates a new object of type Fruit, which then has the properties, so mangoFruit.showName() then exists and will run.
HansGrubername
@HansGrubername
@Marianissimus @dardandmr those two suggestions did the trick, cheers!
Abdullah
@AbdullahChaudhry
@HansGrubername When you use concat it will return a string but you are not adding that string to deciphered variable.
Unknown
@Unknownhezipaz
is this page for php help
Puneeth N
@puneethnviraat
hello friends..i have problem,,I.e . if i dislplay the data in html page from the js file,,it's closing immidiatly.. fractionof second json div is closing..i have to display the json data..please help me. 'code'

function details(i){
var details;
var obj = data.pokemon[i];
for (var key in obj){
var value = obj[key];
if(key=="next_evolution"){
details +=" <br><br>next_evolution";
for (var j = 0; j <= data.pokemon[i].next_evolution.length; j++){

var objj = data.pokemon[i].next_evolution[j-1];
for (var key in objj){
var value = objj[key];
details += "<br> " + key + ": " + value;}

}}
else if(key=="prev_evolution"){
details += "<br> <br>prev_evolution";
for (var j = 0; j <= data.pokemon[i].prev_evolution.length; j++){

var objj = data.pokemon[i].prev_evolution[j-1];
for (var key in objj){
var value = objj[key];

 details += "<br>  " + key + ": " + value;}

}}
details += "<br> " + key + ": " + value;
}
document.getElementById("details").innerHTML =details;
}

};

Kaz Baig
@kbaig
@puneethnviraat would be easier if you could provide a pen with the code or something
Puneeth N
@puneethnviraat
@kbaig ok..sure
h1tag
@h1tag
@majedmahmood27 no, try the main room or the backend room
Puneeth N
@puneethnviraat
@kbaig please
asmith1000
@asmith1000
hi! can you tell me why my button looks weird like a default button with a background and not like the styled button shown here https://www.w3schools.com/css/tryit.asp?filename=trycss_buttons_basic
https://codepen.io/asmith1000/pen/yKOYyq Thanks!
Marianissimus
@Marianissimus
@asmith1000 you're styling the parent of the button, not the button itself
replace .lowerbuttons with button and see the difference
asmith1000
@asmith1000
thanks!
dinesh
@1532j0004kg
@khaduch :+1:
@khaduch thanks
CamperBot
@camperbot
1532j0004kg sends brownie points to @khaduch :sparkles: :thumbsup: :sparkles:
:star2: 3795 | @khaduch |http://www.freecodecamp.org/khaduch
h1tag
@h1tag
@puneethnviraat where are you getting the data from?
Puneeth N
@puneethnviraat
@h1tag i had attached json file ..
h1tag
@h1tag
@puneethnviraat and the file is on your local storage?
Puneeth N
@puneethnviraat
the problem is the data is displaying and immidiatly got closed with in fraction of time. i mean it's like a flashing..
yes..
just i want it to be stay in div,..div should not close..help me..please
h1tag
@h1tag
@puneethnviraat I can't test it like this, because the data is on you local storage
Puneeth N
@puneethnviraat
k
h1tag
@h1tag
@puneethnviraat can you paste the content of the json file in the js section on codepen?
store it in a variable
Puneeth N
@puneethnviraat
yes i added
LydaTech
@lydatech
anyone work with styling html5 video ?
Stephen James
@sjames1958gm
@puneethnviraat You need to disable default behavior of forms
Kaz Baig
@kbaig
@puneethnviraat when you submit a form, the page refreshes
Stephen James
@sjames1958gm
@puneethnviraat use preventDefault function
Puneeth N
@puneethnviraat
oh sorry..
i refreshed it
@sjames1958gm how can o do that .
dinesh
@1532j0004kg
I explored on o auth (google+) but i need to know , how to use multiple strategies ?
and how to interrelate all
like if i signedup with fb , I can also able to login with google+.
and also how to use both local and oauth strategies .
h1tag
@h1tag
@puneethnviraat or try this