JavaScript Programming Pt1 (Getting Started) by raymonjohnstone

View this thread on steempeak.com
· @raymonjohnstone · (edited)
$12.18
JavaScript Programming Pt1 (Getting Started)
<h1>Getting Started</h1>
<center>
![images.jpg](https://steemitimages.com/DQmZTY75myUA8dYoxSzbtjrjLVEnK4hYhLDgi3CL7JGqVj7/images.jpg)
<a href="http://eulife.appchallenge.net/tutorial-7-building-a-javascript-eulife-app/">Source</a>
</center>
Alright firstly what is needed to get started:

Any text editor, some may prefer one with syntax colour coding in which case I recommend Sublime Text 2.
Notepad ++
Notepad
Gedit
Nano
Any of these will do the trick, we really just need to be able to save raw txt without extra characters being added.

Next we need a browser to be able to view the code we have written.
Chrome
Chromium
Firefox
Opera
Safari
Any standard internet browser will do, some may have funkiness dealing with modern Javascript so I recommend firefox or chrome.

<h1>Now we have those, lets have some fun!</h1>

Open up your text editor and create a file on your desktop named HelloWorld.html or anything you like really.

Now lets add the following to our file:

![one.png](https://steemitimages.com/DQmQnpSCksGdbzaF5CuNk5abWBzxx9XbTygAjN6rfo3MD3E/one.png)

Alright this stuff is fairly innocuous, I am sure you have at least seen some basic html tags but here we tell the browser that our file is an html file, now lets open up our file in our browser:

![two.png](https://steemitimages.com/DQmW4br3XzmKgqYrWRfzd4akeh2wEsRLFRJTmugxk4p3YHw/two.png)

Pretty boring right? Well there are some things here that aren't immediately apparent so lets open up our developer console as well: With firefox > Tools > Web Developer > Web Console

![three.png](https://steemitimages.com/DQmaYywA5X6Mom1GqNsyUCVhtyEqba6nRFF9AoQittBhD1y/three.png)

Awesome lets swap back over to our text editor and do some stuff, everything we do for now will be between the open script tag and closing /script tag

![four.png](https://steemitimages.com/DQmRG7vEDfw1XhUMYUxQVu8z8Xu2pjwdXBsjmjtyWtQW9ES/four.png)

You will notice that I have added a meta charset and a media print tag this is simply to clean up some complaints from firefox.

The fun thing is console.log, this allows us to log information to our developer console, go ahead and save and refresh the file in your browser and you should see this:

![five.png](https://steemitimages.com/DQmRnZ39SFNENGWfigaFSRGFW5Gb4Z5fi4hHnKRHAVuDxdF/five.png)

My First Words!!!
Excellent console.log is used for numerous things such as debugging as well as communicating information.

This ends our first lesson play around with console logging different information and join me next time when we learn more about Javascript programming.

<a href="https://steemit.com/programming-trail/@raymonjohnstone/javascript-programming-pt2-variables-and-statements">You can find Part Two here.</a>

<h1>Thank you for your time and attention.</h1>

![Logomakr_6m9Y20.png](https://steemitimages.com/DQmXF6SjAnzAro3psTqg78y2zVcuKUN3X5bZ8xDd3qmjCmj/Logomakr_6m9Y20.png)
👍  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and 155 others
properties (23)
post_id2,421,129
authorraymonjohnstone
permlinkjavascript-programming-pt1-getting-started
categoryprogramming-trail
json_metadata"{"app": "steemit/0.1", "format": "markdown", "links": ["http://eulife.appchallenge.net/tutorial-7-building-a-javascript-eulife-app/", "https://steemit.com/programming-trail/@raymonjohnstone/javascript-programming-pt2-variables-and-statements"], "image": ["https://steemitimages.com/DQmZTY75myUA8dYoxSzbtjrjLVEnK4hYhLDgi3CL7JGqVj7/images.jpg"], "tags": ["programming-trail", "javascript", "getting-started", "developers", "programming"]}"
created2017-04-18 21:23:00
last_update2017-04-21 00:28:54
depth0
children2
net_rshares16,111,531,894,856
last_payout2017-04-25 21:23:00
cashout_time1969-12-31 23:59:59
total_payout_value9.472 SBD
curator_payout_value2.709 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length2,889
author_reputation14,125,375,446,227
root_title"JavaScript Programming Pt1 (Getting Started)"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (219)
@virtualgrowth ·
Good stuff!
👍  
properties (23)
post_id2,421,871
authorvirtualgrowth
permlinkre-raymonjohnstone-javascript-programming-pt1-getting-started-20170418t233936593z
categoryprogramming-trail
json_metadata"{"app": "steemit/0.1", "tags": ["programming-trail"]}"
created2017-04-18 23:39:39
last_update2017-04-18 23:39:39
depth1
children1
net_rshares10,170,259,380
last_payout2017-04-25 23:39:39
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length11
author_reputation170,695,559,013,658
root_title"JavaScript Programming Pt1 (Getting Started)"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (1)
@raymonjohnstone ·
Thanks man, very much appreciated!
properties (22)
post_id2,422,235
authorraymonjohnstone
permlinkre-virtualgrowth-re-raymonjohnstone-javascript-programming-pt1-getting-started-20170419t010549090z
categoryprogramming-trail
json_metadata"{"app": "steemit/0.1", "tags": ["programming-trail"]}"
created2017-04-19 01:05:48
last_update2017-04-19 01:05:48
depth2
children0
net_rshares0
last_payout2017-04-26 01:05:48
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length34
author_reputation14,125,375,446,227
root_title"JavaScript Programming Pt1 (Getting Started)"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000