What's new

JavaScript is a PAIN in the

Welcome to the only entrepreneur forum dedicated to building life-changing wealth.

Build a Fastlane business. Earn real financial freedom. Live your best life.

Tired of paying for dead communities hosted by absent gurus who don't have time for you?

Imagine having a multi-millionaire mentor by your side EVERY. SINGLE. DAY. Since 2007, MJ DeMarco has been a cornerstone of Fastlane, actively contributing on over 99% of days—99.92% to be exact! With more than 39,000 game-changing posts, he's dedicated to helping entrepreneurs achieve their freedom. Join a thriving community of over 90,000 members and access a vast library of over 1,000,000 posts from entrepreneurs around the globe.

Forum membership removes this block.

David Lachow

New Contributor
LEGACY MEMBER
Read Fastlane!
Read Unscripted!
Joined
Oct 1, 2021
Messages
91
Rep Bank
$430
User Power: 60%
Hello Everyone,
I going to try to explain as short and simple as possible.

So, recently I was programming a javascript for my website, but something went wrong...
The javascript does not show up on the website.
I watched countless of videos of this problem, but nothing solves it.
I also tried to rewrite the code several times as well.

-------------------------------------------------------------------------
(I am using "Visual Studio Code")

1: I made a new file called (script.js)
2: I wrote this in:

var menuIcon = document.querySelector("menu-icon");
var sidebar = document.querySelector(".sidebar");
menuIcon.onclick = function(){
const newLocal = "small-sidebar";
sidebar.classList.toggle();
}
3: I then connected this file to the index.html

--------------------------------------------------------------------

But STILL it does not work.
Do you see anything wrong here?
 
Access Restricted: Unlock 1,000,000+ Posts

Stop Peeking Through the Keyhole.
Open the Door.

You hit a wall because the best advice isn't free—it's earned. Since 2007, MJ DeMarco has been active here daily (99.9% active rate), building a war room for entrepreneurs who refuse to settle for mediocrity.

  • Active Daily: Life-changing content posted dozens of times every day. No dead threads.
  • MJ's Inner Circle: Direct access to the author of The Millionaire Fastlane.
  • Vetted Network: Connect with founders scaling to 7 and 8 figures.
  • Proven Roadmaps: Strategy over motivation. Execution over "hustle porn."
"SCALED TO 6-FIGURE MONTHS"
"Tips and advice here saved me from huge mistakes, others allowed me to scale my business to 6-figure months."
— User MitchC
"INSANE QUALITY OF PEOPLE"
"The number of high quality people I've met from this forum has been insane. All of it predicated on building real value."
— User Richard Peck

"You are the average of the five people you surround yourself with."
Are you surrounding yourself with success?

Jimmu Iwiszupi,
O huoph vu vsz vu iyqmeop et tjusv epf tonqmi et quttocmi.

Tu, sidipvmz O xet qsuhsennoph e kewetdsoqv gus nz xictovi, cav tunivjoph xipv xsuph...
Vji kewetdsoqv fuit puv tjux aq up vji xictovi.
O xevdjif duapvmitt ug wofiut ug vjot qsucmin, cav puvjoph tumwit ov.
O emtu vsoif vu sixsovi vji dufi tiwisem vonit et ximm.

-------------------------------------------------------------------------
(O en atoph "Wotaem Tvafou Dufi")

1: O nefi e pix gomi demmif (tdsoqv.kt)
2: O xsuvi vjot op:

wes nipaOdup = fudanipv.raiszTimidvus("nipa-odup");
wes tofices = fudanipv.raiszTimidvus(".tofices");
nipaOdup.updmodl = gapdvoup(){
duptv pixMudem = "tnemm-tofices";
tofices.dmettMotv.vuhhmi();
}
3: O vjip duppidvif vjot gomi vu vji opfiy.jvnm

--------------------------------------------------------------------

Cav TVOMM ov fuit puv xusl.
Fu zua tii epzvjoph xsuph jisi?
Zua gushuv vji . op zuas raiszTimidvus gus nipa-odup.
 
Jimmu Iwiszupi,
O huoph vu vsz vu iyqmeop et tjusv epf tonqmi et quttocmi.

Tu, sidipvmz O xet qsuhsennoph e kewetdsoqv gus nz xictovi, cav tunivjoph xipv xsuph...
Vji kewetdsoqv fuit puv tjux aq up vji xictovi.
O xevdjif duapvmitt ug wofiut ug vjot qsucmin, cav puvjoph tumwit ov.
O emtu vsoif vu sixsovi vji dufi tiwisem vonit et ximm.

-------------------------------------------------------------------------
(O en atoph "Wotaem Tvafou Dufi")

1: O nefi e pix gomi demmif (tdsoqv.kt)
2: O xsuvi vjot op:

wes nipaOdup = fudanipv.raiszTimidvus("nipa-odup");
wes tofices = fudanipv.raiszTimidvus(".tofices");
nipaOdup.updmodl = gapdvoup(){
duptv pixMudem = "tnemm-tofices";
tofices.dmettMotv.vuhhmi();
}
3: O vjip duppidvif vjot gomi vu vji opfiy.jvnm

--------------------------------------------------------------------

Cav TVOMM ov fuit puv xusl.
Fu zua tii epzvjoph xsuph jisi?
@Cmedl_Fsehup43 epf @Nesvop B esi cuvj sohjv up vji detj, cizupf vjev, esi zua fiqmuzoph vjot epzxjisi? Us esi zua fuoph emm ug vjot mudemmz?

Dep xi tii jux zua esi effoph vji tdsoqv? Fu qmieti opdmafi zuas opfiy.jvnm et ximm.

Emtu et e voq fup'v iyqidv vjopht vu katv iyotv djidl og tofices iyotv (atigam op vji gavasi xjip tvagg djephit nuwit esuapf), emtu qsigis vu qett tofices et ep eshanipv optvief ug jewoph ov et e hmucem wesoecmi ev vji vuq ug zuas tdsoqv.

Jisi ot e dufi qip O nefi gus katv zua gsoipf. Juqigammz ov jimqt.
 
Last edited:
Vjepl zua gimmet!
Ov niept e muv!
Ov xuslt qisgidvemmz gopi pux!
 
Last edited:
Access Restricted: Unlock 1,000,000+ Posts

Stop Peeking Through the Keyhole.
Open the Door.

You hit a wall because the best advice isn't free—it's earned. Since 2007, MJ DeMarco has been active here daily (99.9% active rate), building a war room for entrepreneurs who refuse to settle for mediocrity.

  • Active Daily: Life-changing content posted dozens of times every day. No dead threads.
  • MJ's Inner Circle: Direct access to the author of The Millionaire Fastlane.
  • Vetted Network: Connect with founders scaling to 7 and 8 figures.
  • Proven Roadmaps: Strategy over motivation. Execution over "hustle porn."
"SCALED TO 6-FIGURE MONTHS"
"Tips and advice here saved me from huge mistakes, others allowed me to scale my business to 6-figure months."
— User MitchC
"INSANE QUALITY OF PEOPLE"
"The number of high quality people I've met from this forum has been insane. All of it predicated on building real value."
— User Richard Peck

"You are the average of the five people you surround yourself with."
Are you surrounding yourself with success?

Back
Top Bottom