tomorrow i have a technicall interview for a Job has FrontEnd developer
someone could tell me what can i read for be prepared?
or what can i see
Saboor Malik
@MathematicsCoding
@castro2487 are you certified front-end developer?
Roger Castro
@castro2487
almost
Saboor Malik
@MathematicsCoding
I see nice
Roger Castro
@castro2487
i'm at intemediate project
Saboor Malik
@MathematicsCoding
@castro2487 which project are you working on?
Roger Castro
@castro2487
in the first one of intermediate project
Saboor Malik
@MathematicsCoding
Random quote machine?
Roger Castro
@castro2487
yes
Saboor Malik
@MathematicsCoding
Same
Roger Castro
@castro2487
it's a little frustrating
Saboor Malik
@MathematicsCoding
Yeah
I have no idea how to repeat different quotes...
Johnny
@jtan3
@MathematicsCoding you could use Math.random(); that you learned before
Saboor Malik
@MathematicsCoding
Where am I supposed to add that?
_
Johnny
@jtan3
apply it to your quotes
what do you have so far?
Saboor Malik
@MathematicsCoding
Well I had two but only after it works..
Johnny
@jtan3
how are you writing the quotes?
Saboor Malik
@MathematicsCoding
$(document).ready(function(){
$("#getMessage").on("click", function(){
$(".message").html("Mistakes are always forgivable, if one has the courage to admit them. - Bruce Lee" );
});
});
Do you need to see my html code?
Johnny
@jtan3
is that all you have?
Saboor Malik
@MathematicsCoding
I could add more if I know how to repeat different quote..
Johnny
@jtan3
you can put all your quotes in an array and loop through them
Saboor Malik
@MathematicsCoding
Ah
I will try that
So I have to remove that code then?
Just
$(".message").html("Mistakes are always forgivable, if one has the courage to admit them. - Bruce Lee" );
});
Honestly? I dont where to add for loop... Im new to codepen
Inside these document function?
Johnny
@jtan3
you can just comment your code for later use
you can write your javascript in there
Saboor Malik
@MathematicsCoding
okay
So I need to create new functoin?
function
$(document).ready(function(NAME HERE?)
Johnny
@jtan3
you can make an array inside the $(document).ready(function(){ });
Saboor Malik
@MathematicsCoding
So I dont need for loop?
Oh never mind I thought you meant something like $(document).ready(function() {array} { });