Javascript – Introduction and variables

Javascript – Introduction and variables

Javascript born in 1995 and initially inspired from Java. Is the only language you can run in a web browser and gives interactivity to the HTML documents. Javascript can also run outside the web browser on a nodeJS interpreter for example. Javascript is an interpreted language and compiled just-in-time which means that the code is converted just before runtime. With Javascript, you can change the CSS and HTML code, use geolocation and even work with data using Ajax. You can put your Javascript code: inside the HTML in a local…

Javascript – Introduction and variables Read More

Java – Variables and Types

Java – Variables and Types

Variable is a small piece of memory that holds information/data value. All variables have data types. Types define the type of information, a category or set of data values. Also defines the operations that can be performed on the data. Variable must also have a name. It is an identifier and can contain letters, numbers and underscore (_). It cannot start with a digit. Names are case sensitive, that means that name is different from NAME. There is no length limit and should not use Java reserved words. Some tips:…

Java – Variables and Types Read More

Kotlin – Declare variables and Comments

Screenshot 20181225 191437

Kotlin is a statically typed language, but you do not always have to declare the variable types. And you don’t have to do that because the compiles tries to figure out the type of the variable type from the initialization. To declare a variable in Kotlin you must use val or var. var declares a mutable variable,in other words you can change the value. But you cannot change the value of a variable when you declare it with val, it is the same as you use final in Java. //…

Kotlin – Declare variables and Comments Read More