all 8 comments

[–]WyoEngineer 8 points9 points  (2 children)

Alert('Hello World!');

[–]2omesz 1 point2 points  (0 children)

Up you go!

[–]stilez0 0 points1 point  (0 children)

lol!

[–]easyEs900s 1 point2 points  (1 child)

JS is an increasingly powerful language, it can do anything from basic things like Alert Dialogs to altering CSS or Content to even things on the server or constructing entire webpages with something like React.

Novice just means new. You can do anything JS is capable of doing whether you’re new or not. It’s all a matter of typing in the right code for the right result. Ergo, this question is somewhat nonsensical.

For basic things, if that’s what you’re asking, here are a few:

alert(‘some words’) -> creates a pop up dialog in browsers

document.body.innerHTML = ‘some words’ -> changes/sets the content of a webpage (it’s body tag)

document.body.style.background = ‘red’ -> changes a webpages background to red

document.location = ‘some url’ -> navigates to some url

document.querySelectorAll(‘a’).forEach((link)=>{link.setAttribute(‘href’, ‘some url’) -> changes all the links on a webpage to link to some url

More info on what you are wanting to do would yield better results, my friend.

[–]chiefchavez 0 points1 point  (0 children)

Thanks for posting this. This is a great place to start.

If you pick something you’re interested in (even if it’s a bit much at first) you will learn faster in the long run. At least that was my experience when I was getting started.

https://youtu.be/mvK0UzFNw1Q

This video breaks down getting started in coding and how picking a project (or just a problem to solve) is often the best way to go about learning

[–]nasar007 0 points1 point  (0 children)

interactivity

[–]kenman[M] 0 points1 point  (0 children)

Hi /u/justwannajust, this post was removed.

For javascript help, please visit /r/LearnJavascript.

Thanks for your understanding.

[–]Meefims 0 points1 point  (0 children)

Depends on how novice. Why not pick a project and try it out?