Advanced Search
Search Results
263 total results found
How To Install NodeJs + NPM (Linux)
1. Head to the official repository for Node.js distributio The link is right here: https://github.com/nodesource/distributions. Head there and scroll down to find the correct command to copy and paste to install the version of Node you would like 2. Start N...
Apache Kafka
Introduction
What is JavaScript It is a scripting language that is the core of websites, along with HTML and CSS, by learning scripting language you give interactivity to your web pages! Sliders, alerts, click interactions, popups, etc... Are all made possible with JavaS...
SQL
Code structure and data types
Script tag You can insert JavaScript program into HTML document using the <script> tags. You can write inline scripts directly between the tags or you can include external scripts. In order to include external script you would specify the src attribute for t...
Go / Golang
Variables
Variables A named storage for storing data. There are couple way of creating a variable var keyword This is the relic of the past, back when JavaScript first came out it was the only way of declaring variables with the var keyword. Variable declared with ...
General Programming Principal
Type Conversion
String Conversion You can call the String() function to explicit convert a value to a string String(false) -> "false" String(null) -> "null" Numeric Conversion Occurs when you use math functions and expressions console.log("6" / "2"); // Print out 3! Or...
SSL and Certificates
Basic Operators and Comparsion
Math Operators +, addition -, subtraction *, multiplication /, division %, remainder **, exponentiation String Operators The plus symbol if used with Strings will be for concatenation, you join two String together. If any of the operand is a String, th...
ActiveMQ
Conditional and Logical Operator
Ternary Operator let accessAllowed; if (age > 18) { accessedAllowed = true; } else { accessedAllowed = false; } // Can be simplified into just accessedAllowed = age > 18 ? true : false; || (OR) Returns true if one of the boolean value is tru...
Artificial Intelligence Learning
Loops and switch statement
While and for loop They are the same as in Python, C, and Java while (condition) { // Repeat certain code } for (begin; condition; step) { // Repeat certain code } break and continue both works the same way as in any other language. Switch state...
Samba
Functions, function expression, arrow function
Function Declaration To declare a function follow the syntax: function function_name(parameter1, parameter2, ..., parameterN) { // Body of the function } The function can have access to outer variable, as well as modifying it. The outer variable is only...