Categories
javascript

Differences Between var, let and const.

Var Declaration Before the introduction of ES6 in 2015, var was the go-to way to declare variables in Javascript. Example: But because variable declarations are processed before any code is executed, declaring a variable anywhere in the code is equivalent to declaring it at the top. This also means that a variable can appear to […]

Categories
java

Throw And Throws Exception in Java

Throw Throw is a keyword that is used in Java to declare an exception which is similar to the try/catch block. It is used to declare an explicit exception inside a block of code or method. Example Throws Throws is a keyword also as well as a method signature used to declare an exception which […]

Categories
javascript programming

What are Relational Operators?

Unlike logical operators which connect two or more expressions, relational operators test and establish some type of relation between two or more operands. There are six (6) relational operators, which are: Equal to (==) Yes, I know what you are thinking. We should have used the well-know equal sign (=) right? Well, that falls under […]

Categories
javascript

Template Literals

Template literals allow for embedded expressions and help to solve the complex concatenation problem. They are enclosed by a back-tick character (the button just below the escape key on your keyboard) and are represented by a dollar sign ($) and curly braces ( {} ). The template literals feature is an ES6 addition in Javascript, […]

Categories
programming

Logical Operators

2. Logical OR operator ( || ): For logical OR operators, one of the operands just have to be true for the statement to be true. 3. Logical NOT operator ( ! ): This is used to reverse the logical state of its operands. If a condition is true, then the Logical Not will make […]

Categories
ethical hacking

5 Network Scanning Tools

Network scanning is the process of identifying, analysing and fixing loopholes and vulnerabilities in a network to prevent a malicious attacker from gaining access to your network system. For a network to run effectively, there has to be some form of network security in place. This comprises set of rules, policies and acceptable instructions used […]

Categories
Cascading style sheet

Box shadows in CSS

The box shadow property in CSS is used to cast shadow on the frame of elements. It has the following syntax: -webkit-box-shadow /* Safari, iOS */ -moz-box-shadow /* Firefox */ box-shadow /* Opera, IE, Chrome */ box-shadow: [horizontal offset] [vertical offset] [blur radius] [optional spread radius] [color] The Horizontal Offset (required): The horizontal offset gives […]

Categories
javascript

Working With Functions

A function is a group of reusable code that can be called anywhere in your program. Functions eliminate the need of writing the same code again and again. Functions also allow a programmer to divide a big program into a small and manageable chunks. The way to define a function in Javascript is to use […]

Categories
react native

Beginning With React Native

React Native is an open-source mobile application framework created and developed by Facebook, Inc. It is used to develop native applications for Android, Android TV, iOS, macOS, tvOS, web, windows and UWP (Universal Windows Platform). It was first released in 2005 and since then lots of tech companies have used it to build their applications. […]

Categories
java

Inheritance in Java

Inheritance in programming is the process whereby one class (also called a sub-class) acquires the properties (methods, fields, etc) of another (in this case a super class) using the extends keyword. This makes information manageable in a hierarchical manner. With inheritance, you can create new classes that are built upon existing classes. When you inherit […]

Categories
java

Exceptions in Java

An exception is a problem that arises during the execution of a program. When an exception occurs, the normal flow of the program is disrupted and the program or application terminates abruptly. An exception can occur for several reasons, some of which include: A user has entered an invalid data A requested resource was not […]