Tags » Serverside

IF statements, switches and conditional assignments

Different ways to write conditional statements:


// IF

if(condition)

{

//Do something

}

// If ELSE

if(condition)

{

// Do something

}

else

{

// if false, do something else

}

// IF, ELSE IF

if(condition1)

{

// Do something

}

else if(condition2)

{

// If not condition 1 and condition 2, do something

}

// Note that you can omit the brackets if you only need to do one action. 110 more words

How to check if a resource is available on server

Sometimes it can be useful to know if a resource is available before trying to load it. A good example being something that you need to create if it does not already exist. 186 more words

Serving up a file for download

I’m back again! So recently I had to make an application that zips up and serves up files to the browser and I thought that I should share my code to help anyone out there trying to do the same. 81 more words

Constructor

  • Constructor are like method with same name as class.
  • Whenever object is created Constructor will executes.
  • Unless and until class is Static, classes without Constructors given default…
  • 123 more words
Programming

Getting Started with Node.JS

In this post I will give you guys a brief tutorial on how to get started with Node.JS….

Installing Node.JS
To install Node it is really simple, all you need to do is go to  220 more words

FirstTimeNodeJSUser