What is Javascript
Javascript is an object oriented language programming language that revolutionized the way we interact the web and view the Internet. While many people may dislike the language for whatever reason, I believe its safe to rate Javascript as one of, if not the most important programming languages to learn if you're going to be doing any kind of serious development. If you're going to be doing any kind of web development then javascript is something you have to understand inside and out. Luckily its not that hard to begin learning, and there is a vast web of free resources for you to progress through as you move through your journey.
As much as id like to make some myself, theres is no point in reinventing the wheel(nothing to do with the fact that @utopian-io wont pay me for this bcoz #toobasic). So with that said im going to keep this short and post a really good quick tutorial that got me back up to speed. If you don't have much prior experience than you may end up having to look at the answers, but as long as it clicks once you have, don't feel bad. Just make sure you understand why everything does what it does before moving to the next step. One way to easily do this is to make comments and/or read the code like a sentence out loud. It should always make sense like in this example.
var total = 0;
//The variable "total" is equal to 0
var limit = 10;
//The variable "limit" is equal to 10
for (var i = 0; i < limit; i++){
//The variable "i" begins equal to 0; Whenever "i" is less than "limit" run the loop
total += i;
// add the total to "i"
}
console.log(total)
//print "total" to the screen
This is an example from the tutorial below. I did not make this, and you can find the whole thing here at https://github.com/workshopper/javascripting
L2JAVASCRIPT
Below are the steps that I have taken in order to get familiar with Javascript offered as a simplified compilation of multiple tutorials teaching the basics of how to use Javascript. most effectively. As the "Low Skill NOOB to Steem Dev" project progresses there may be additional sections added here.
Install Node.js
Make sure Node.js 8+ is installed on your computer.
Install it from https://nodejs.org
Install javascripting with npm
Open your terminal and run this command:
npm install --global javascripting
The --global option installs this module globally so that you can run it as a command in your terminal.
If you get an EACCESS error, the simplest way to fix this is to rerun the command, prefixed with sudo:
sudo npm install --global javascripting
You can also fix the permissions so that you don't have to use sudo. Take a look at this npm documentation: https://docs.npmjs.com/getting-started/fixing-npm-permissions
Run the workshop
Open your terminal and run the following command:
javascripting
You'll see the menu:
Navigate the menu with the up & down arrow keys.
Choose a challenge by hitting enter.
You can use any editor you like.
atom or brackets are both good options.
Advanced Scripting Concepts & Practice
This step is actually responsible for why I'm late with this, haha. It's a game called Screeps that I'd heard about a while back but never actually got into playing it. Its a sandbox MMO that works kind of like a real time strategy game only you're programming it in real time. Its written all in Javascript so if you're trying to get some real world practice in a fun way its perfect.
Great job explaining to people where to start. Personally there isn't enough of this type of thing out there. People are just lost and with the changes to javascript in the last couple of years suddenly if you have been out of the loop on it for a little bit it is easy to suddenly be lost even when you thought you have a foundation.
exactly i took a class on jquery years ago and while thats not completely irrelevant its not what people are using today.
yeah it all changed so fast and suddenly i was looking at code and was like "What the Hell is this?"
I was reduced to a n00b suddenly.
Honestly that is one of the things I hate about coding and web development. Thing are changing so fast a person almost has to like to just code constantly everyday and re work stuff all the time.
With system administration stuff I feel like those skills stay in tact a little better if a person was slightly out of the loop for a couple of years.