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
A. J. Bozdar
@moajday
I changed n to 10; no response.
Stephen James
@sjames1958gm
@relentless-coder Are these basic HTML pages? Do they load a lot of extra files? Does it only happen when you scroll right after the page is loaded?
I would open devtools and use the network tab to see if there is a loading delay, at least start there
@ajbozdar Where are you calling the function?
There needs to be a line of code after the function like
showPrimes(10)
A. J. Bozdar
@moajday
If you have never seen continue in real code then JS.info is probably overusing labels.
Stephen James
@sjames1958gm
@ajbozdar The second example has continue without the label, that is what I usually see.
A. J. Bozdar
@moajday
Oops! My mistake. I am sorry. Look onto above code. It is just there in the end.
A. J. Bozdar
@moajday
You mean second code is better than the first code, right?
Stephen James
@sjames1958gm
@ajbozdar Yes, I believe so
@ajbozdar by just having the function called isPrime it is much easier to know what the code is doing.
ahmed-issa-mohd
@ahmed-issa-mohd
Can anyone tell me how border-image-slice Property works ?
ahmed-issa-mohd
@ahmed-issa-mohd
how is it working ?
Ghost
@ghost~5a4a80acd73408ce4f859755
did u read that?
ahmed-issa-mohd
@ahmed-issa-mohd
yse
image.png
yes
Stephen James
@sjames1958gm
@ahmed-issa-mohd It is saying how much of the border image to I slice off (how much do I use) to fill the border.
A larger number picks more of the image for the border (which then scales the image down to fit in the border)
ahmed-issa-mohd
@ahmed-issa-mohd
thankS
Stephen James
@sjames1958gm
@ahmed-issa-mohd :+1:
eclip-se
@eclip-se
Helooo
Ghost
@ghost~5a4a80acd73408ce4f859755
Hi @eclip-se
eclip-se
@eclip-se
image.png
guys, i'm trying to learn all this stuff and i'm locked in choice when i'll think about time and what should i really focus on.. i have some knowledge already, but when i'll try to analyze and rethink whats really hapenning in term of pure hmtl/css for the start, i dont know how to train myself with project. Currently my idea is to look at themeforest or other theme selling site, pick one design, open in photoshop make notes like this .
the question is, what should i focus on and what project i should start with to learn efficiently.
Ghost
@ghost~5a4a80acd73408ce4f859755
work through the FCC projects maybe?
eclip-se
@eclip-se
maybe yes, before i go there, i wanted to ask here ..
asking here is more an insight, another source and point of view.
Ghost
@ghost~5a4a80acd73408ce4f859755
sorry but that's what im doing, im just working on the FCC ones. Maybe others more experienced could give you better advice @eclip-se
eclip-se
@eclip-se
Thanks man! :)
Ghost
@ghost~5a4a80acd73408ce4f859755
You're welcome :) @eclip-se
Ayush Bahuguna
@relentless-coder
@sjames1958gm hey, I have checked that already, and all files are loaded. Also, this weird behavior happens whenever I scroll a bit fast
pragya1248
@pragya1248
hey! i m not able to move my 'About Portfolio Contact' to the left by using 'float: left' in CSS. Help me out.
LydaTech
@lydatech
@pragya1248 its on the left
pragya1248
@pragya1248
oh yeah
sorry
LydaTech
@lydatech
@pragya1248 so did you need help?
Stephen James
@sjames1958gm
@relentless-coder So just plain HTML/CSS no React or Angular or other rendering framework?
Ayush Bahuguna
@relentless-coder
@sjames1958gm ejs templates rendered as html through nodejs
Stephen James
@sjames1958gm
@relentless-coder THat is odd, if everything is already loaded then I wouldn't expect scrolling issues.
Any dynamic (js) behavior on scrolling.
Ayush Bahuguna
@relentless-coder
@sjames1958gm yes, I am toggling display of a div based on the scroll height.
let me try removing that first
Stephen James
@sjames1958gm
@relentless-coder I don't have any special insight, just asking the questions I'd ask myself
A. J. Bozdar
@moajday
Does prompt function accept integers?
dinesh
@1532j0004kg

function pairElement(str) {
 var arr = [[],[]];
 var i = 0;
 // return    len = str.length;
 while(i < str.length)
  {
      if(str[i] == 'G')
        {
          arr[i][0] ="G";
          arr[i][1] = "C";
        }
  //if(str[i] == 'C')
    //    {
      //    arr[i][0] ="G";
        //  arr[i][1] = "C";
       // }

    /*  if(str[i] == 'C')
        {
          arr[i][0] ="C";
          arr[i][1] = "G";
        }

      if(str[i] == 'T')
        {
          arr[i][0] = "T";
          arr[i][1] = "A";
        }
      if(str[i] == 'A')
        {
          arr[i][0] = "A";
          arr[i][1] = "T";
        } 
 */   
      i++;
    }
  return arr;
}
pairElement("GCG");
Stephen James
@sjames1958gm
@ajbozdar How do you mean accept?
You give integer to prompt to display?
User enters integer?
@1532j0004kg Since you don't know string.length ahead of time, you should probably add to arr a different way rather than
with hardcoded two []
dinesh
@1532j0004kg
this code shows the error
but when i replace the i with 0 , its executing , can u please help me to solve this !
A. J. Bozdar
@moajday
I ask user to enter a number then I want to add and console log the addition.
Ghost
@ghost~5a4a80acd73408ce4f859755
trynna design a webpage for a porject, but not really creative, can anyone give me ideas please?