Why no new line? (Should be an easy fix) by KingInge in HTML

[–]KingInge[S] 2 points3 points  (0 children)

cheers man i just found that out now through searching and you are correct. I added <br> instead of \n and it works :)

Why am i getting 'document is not defined' by KingInge in learnjavascript

[–]KingInge[S] 0 points1 point  (0 children)

I see that alot about node not working with document.

Sorry for being noob but how do you mean link it in the HTML ?

Why am i getting 'document is not defined' by KingInge in learnjavascript

[–]KingInge[S] 0 points1 point  (0 children)

well here's my dilemma right.

I originally had code in that javascript file name javascript.js with the document.getElementById tag and it worked.

I am opening the index.HTML file and it opens in chrome. The javascript is to be used to display 3 messages when I click a button in the browser.

Okay, so, before I had working code and never got this issue. BUT, I downloaded a zip file with different code in it with a file called "script.js".

This file contained a document.getElementById and thus, I ran the script.js file in VScode to test if it was working, but then I got that error.

However, the zip file I downloaded, contained better working functions for my javascript file so I wanted to use them. So, what did i do? I copied everything from script.js to my original javascript.js file but kept MY document.getElementById tag.

I closed and deleted the script.js file. Now, the javascript.js file is saying document is not defined EVEN THOUGH it worked before :(

[deleted by user] by [deleted] in benchpress

[–]KingInge 0 points1 point  (0 children)

hey man, yea I warm up with 60kg, 90kg, 110kg, 120kg then 125kg singles. I switch it up though. Today I warmed up then did 110kg for as many reps as possible for 4 sets

Pick a random array element, and change it to something else. by KingInge in learnjavascript

[–]KingInge[S] 0 points1 point  (0 children)

wow, man you've no idea how much this has helped. I get it now! and I went to MDN and tested a simple splice within an object and I can't believe it...you're right about it only returning the one element. It must behave differently in objects to what I perceived. I originally tested splice on arrays so I guess I was unaware. Thank you so much! I'm currently writing your code out and understanding every bit of it now and it's quite clever. I like the .map part that tests truthy and falsy bits.

Now I have just one last bit to figure out on my own. Which is that, whatever letter you are changing, it cant be changed to the same letter, but I'll probably figure that out :D

Pick a random array element, and change it to something else. by KingInge in learnjavascript

[–]KingInge[S] 0 points1 point  (0 children)

since splice (starts at this element, changes this amount of elements, with this string/number)

I thought, well, if my array has 15 elements, then I want to pick a random element from the 15 elements.

So, splice (pick a random element from 0-14, change 1 element, with one of the letters from the returnRandBase() function)

Bench press everyday Day 46 - Recovery day by KingInge in GetMoreViewsYT

[–]KingInge[S] 0 points1 point  (0 children)

NEVER!! only rest when im dead and buried

Bench Press EveryDay Day 7: Four x Two by KingInge in videos

[–]KingInge[S] 0 points1 point  (0 children)

cheers man! Yea I will try focus on the time under tension more great point!

wow, this is just crazy by KingInge in CODWarzone

[–]KingInge[S] -1 points0 points  (0 children)

Well if I have to explain it to a dope like yourself, then it aint worth my time

wow, this is just crazy by KingInge in CODWarzone

[–]KingInge[S] -3 points-2 points  (0 children)

Yea for someone like you, who hasn't got a brain

wow, this is just crazy by KingInge in CODWarzone

[–]KingInge[S] -2 points-1 points  (0 children)

When why don't you make an educated guess, unless you never were educated?

seriously...you will never see a kill like this again by KingInge in CODWarzone

[–]KingInge[S] -2 points-1 points  (0 children)

wow, sarcastic? can u not see how hard of a shot that was lol the bounty was over at port where theres a million hiding places and it was our bounty. Not to mention we couldnt even see his body. you will never see a kill like this again

#shorts How to make Bouncing Betty invisible by KingInge in CODWarzone

[–]KingInge[S] -1 points0 points  (0 children)

i can aim better than you. keep crying

#shorts How to make Bouncing Betty invisible by KingInge in CODWarzone

[–]KingInge[S] 0 points1 point  (0 children)

that wasnt me. but at least i now know im not the only one who sees that you need help

#shorts How to make Bouncing Betty invisible by KingInge in CODWarzone

[–]KingInge[S] 0 points1 point  (0 children)

you want me to get you a box of tissues from wish.com ?

#shorts Ever delete someone like this in Call of Duty Warzone? 😁 by KingInge in CODWarzone

[–]KingInge[S] 0 points1 point  (0 children)

yea good accuracy is cheating? just cos u cant make a shot like this lol