<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>javascript – Heaplevel AB</title>
	<atom:link href="https://heaplevel.com/tag/javascript/feed/" rel="self" type="application/rss+xml" />
	<link>https://heaplevel.com</link>
	<description>Software Development Partner</description>
	<lastBuildDate>Thu, 25 Jul 2019 17:12:13 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1</generator>

<image>
	<url>https://heaplevel.com/wp-content/uploads/2020/01/cropped-Heaplevel-1-32x32.png</url>
	<title>javascript – Heaplevel AB</title>
	<link>https://heaplevel.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Getting started with Javascript</title>
		<link>https://heaplevel.com/blog/getting-started-with-javascript/</link>
		
		<dc:creator><![CDATA[Heaplevel]]></dc:creator>
		<pubDate>Thu, 25 Jul 2019 16:59:46 +0000</pubDate>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[javascript]]></category>
		<guid isPermaLink="false">https://heaplevel.com/?p=75</guid>

					<description><![CDATA[<p>If you want to start programming in Javascript you might ask where do you actually start? It might be that you&#8217;ve been interested in learning more about web programming in general, for which it would be useful to also learn about HTML and CSS as well. While HTML and CSS deal with the structure of &#8230; </p>
<p class="link-more"><a href="https://heaplevel.com/blog/getting-started-with-javascript/" class="more-link">Continue reading<span class="screen-reader-text"> "Getting started with Javascript"</span></a></p>
<p>The post <a href="https://heaplevel.com/blog/getting-started-with-javascript/">Getting started with Javascript</a> first appeared on <a href="https://heaplevel.com">Heaplevel AB</a>.</p>]]></description>
										<content:encoded><![CDATA[<p class="wp-block-paragraph">If you want to start programming in Javascript you might ask where do you actually start?</p>



<p class="wp-block-paragraph">It might be that you&#8217;ve been interested in learning more about web programming in general, for which it would be useful to also learn about <a href="https://simplecodeacademy.heaplevel.com">HTML and CSS</a> as well. While HTML and CSS deal with the structure of a website, Javascript adds the dynamic flavour to your website. </p>



<p class="wp-block-paragraph">There is also a possibility that you want to learn Javascript to write backend applications, using NodeJS. The applications for Javascript are several, both websites and web applications can use Javascript. </p>



<p class="wp-block-paragraph">If this is the first time to Javascript you can start by learning about the language itself and start play around in a sandbox environment. That is the best option to learn Javascript. </p>



<h2 class="wp-block-heading">Learn Javascript by examples</h2>



<p class="wp-block-paragraph">We will experiment with Javascript by looking at some examples. This guide is for you that have a little programming background.</p>



<ol class="wp-block-list"><li>Navigate to <a href="https://jsfiddle.net">JSFiddle</a></li><li>Copy the following code in the HTML box</li><li>Hit the Run button. You should see a popup displaying the text &#8220;Hello, world!&#8221;</li></ol>



<pre class="wp-block-code"><code>&lt;!DOCTYPE HTML>
&lt;html>
&lt;head>
&lt;script>
    alert( 'Hello, world!' );
  &lt;/script>
&lt;/head>
&lt;body>
  The body
&lt;/body>

&lt;/html></code></pre>



<p class="wp-block-paragraph">So what did we actually do here? Simply explained we used the Javascript function called <em>alert</em> to write a message in a popup box. </p>



<p class="wp-block-paragraph">Go ahead and create a second alert with a new message. After you hit Run you should have two popup boxes with two different messages.</p>



<p class="wp-block-paragraph"></p>



<p class="wp-block-paragraph"></p><p>The post <a href="https://heaplevel.com/blog/getting-started-with-javascript/">Getting started with Javascript</a> first appeared on <a href="https://heaplevel.com">Heaplevel AB</a>.</p>]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Javascript true and false values</title>
		<link>https://heaplevel.com/blog/javascript-true-and-false-values/</link>
		
		<dc:creator><![CDATA[Heaplevel]]></dc:creator>
		<pubDate>Thu, 23 May 2019 09:34:40 +0000</pubDate>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[javascript]]></category>
		<guid isPermaLink="false">https://heaplevel.com/?p=41</guid>

					<description><![CDATA[<p>In Javascript comparing values are not always as straightforward as one would expect. Overcoming that fear of which variables are truthy are sometimes is just as easy as learning which values are falsy. If you remember them (6 values) then you can easily know which values are true. NaN false undefined &#8221;, &#8220;&#8221;, &#8220; &#8211; &#8230; </p>
<p class="link-more"><a href="https://heaplevel.com/blog/javascript-true-and-false-values/" class="more-link">Continue reading<span class="screen-reader-text"> "Javascript true and false values"</span></a></p>
<p>The post <a href="https://heaplevel.com/blog/javascript-true-and-false-values/">Javascript true and false values</a> first appeared on <a href="https://heaplevel.com">Heaplevel AB</a>.</p>]]></description>
										<content:encoded><![CDATA[<p class="wp-block-paragraph">In Javascript comparing values are not always as straightforward as one would expect. Overcoming that fear of which variables are truthy are sometimes is just as easy as learning which values are falsy. If you remember them (6 values) then you can easily know which values are true.</p>



<ul class="wp-block-list"><li>NaN</li><li>false</li><li>undefined</li><li>&#8221;, &#8220;&#8221;, &#8220; &#8211; the empty string either single quotes, double quotes or template literalts</li><li>0</li><li>null</li></ul>



<p class="wp-block-paragraph">How do you remember these 6 falsy values in Javascript you say? People remember things differently and since all are unique there are many ways to remember. </p>



<p class="wp-block-paragraph">Remember the simple things first, the one number i.e 0 (zero) is always false. That&#8217;s easy to remember right? Also false makes perfect sense to be&#8230;you guessed it:  false. </p>



<p class="wp-block-paragraph">So four values to go, look at this: null, NaN, undefined</p>



<p class="wp-block-paragraph">Finally strings contain text, strings talk, but a string that doesn&#8217;t contain anything can&#8217;t talk, so it should be false.</p>



<p class="wp-block-paragraph">The perfect order</p>



<ul class="wp-block-list"><li>0</li><li>false</li><li>null &#8211; NaN &#8211; undefined &#8212; becomes nullnandefined &#8211; null (and) undefined. Those are three values coerced into one to remember easily!</li><li>empty strings &#8211; can&#8217;t talk, should be false then. &#8221;, &#8220;&#8221;, &#8220;</li></ul>



<p class="wp-block-paragraph"></p><p>The post <a href="https://heaplevel.com/blog/javascript-true-and-false-values/">Javascript true and false values</a> first appeared on <a href="https://heaplevel.com">Heaplevel AB</a>.</p>]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Java or Javascript</title>
		<link>https://heaplevel.com/blog/java-or-javascript/</link>
		
		<dc:creator><![CDATA[Heaplevel]]></dc:creator>
		<pubDate>Tue, 07 May 2019 09:30:56 +0000</pubDate>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[javascript]]></category>
		<guid isPermaLink="false">https://heaplevel.com/?p=10</guid>

					<description><![CDATA[<p>What is the difference between Java and Javascript? This confusion is very common and just because they share the same prefix Java it is easy to think they are somehow related. Java is a general programming language used heavily today for writing applications designed to run on desktops or servers. Although Java applications can be &#8230; </p>
<p class="link-more"><a href="https://heaplevel.com/blog/java-or-javascript/" class="more-link">Continue reading<span class="screen-reader-text"> "Java or Javascript"</span></a></p>
<p>The post <a href="https://heaplevel.com/blog/java-or-javascript/">Java or Javascript</a> first appeared on <a href="https://heaplevel.com">Heaplevel AB</a>.</p>]]></description>
										<content:encoded><![CDATA[<p class="wp-block-paragraph">What is the difference between Java and Javascript?</p>



<p class="wp-block-paragraph">This confusion is very common and just because they share the same prefix Java it is easy to think they are somehow related. </p>



<p class="wp-block-paragraph">Java is a general programming language used heavily today for writing applications designed to run on desktops or servers. Although Java applications can be found in many areas, today many web applications are written with Java as the backend part. </p>



<p class="wp-block-paragraph">Javascript is a programming language used heavily in web applications too, but found mostly at the frontend part. Although technologies like NodeJS allow you to write server-applications with Javascript. Usually there is a distinction between &#8216;server Javascript&#8217; and &#8216;in-browser Javascript&#8217;. The important thing to remember is they&#8217;re still Javascript but for two different purposes.</p>



<h2 class="wp-block-heading">In-browser Javascript</h2>



<p class="wp-block-paragraph">Here are some examples of what in-browser JavaScript is used for. Remember all is related to websites.</p>



<ul class="wp-block-list"><li>Add or modify the HTML content of a page.</li><li>Add or modify styles and visual aspects of a page.</li><li>Add or modify behaviour, i.e what happens when a user clicks a button, text or anything else on the website. </li><li>Examples of behaviour are also tracking mouse clicks and mouse movement. Even a keyboard press is possible to detect.</li><li>Network related tasks like connecting to other server for fetching content. </li><li>Manage those cute little cookies the browser stores</li><li>Manage the data on the client-side, i.e. the browser.</li></ul>



<h2 class="wp-block-heading">Server Javascript</h2>



<p class="wp-block-paragraph">The applications with server Javascript are several. This is more related to system functionality as this type of Javascript is executed &#8216;near the server&#8217;. I.e. it is not concerned with the website of a user. But more about operating system related tasks. Examples of this would be</p>



<ul class="wp-block-list"><li>Managing files on the hard drive</li><li>Network handling </li><li>Security of a server</li></ul>



<p class="wp-block-paragraph"></p><p>The post <a href="https://heaplevel.com/blog/java-or-javascript/">Java or Javascript</a> first appeared on <a href="https://heaplevel.com">Heaplevel AB</a>.</p>]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
