Engineering Blog

Learn it. Build it. Simulate it.

2,781 step-by-step tutorials and projects on Arduino, ESP32, Raspberry Pi and Proteus.

2781 articles found.

For Loop In JavaScript

for loops in javascript for loop example javascript while loop for...in loop javascript for of loop javascript

Hello folks, I hope you are doing great in your life. In today’s tutorial, I am going to talk about “ For Loop In JavaScript”. This is our 7th tutorial of the JavaScript series. Loops are designed in JavaScript to automate the repetition task. You may have encountered a lot of time in programming that you have to repeat an action again and again. To help you in reducing the number of lines code and time, loops were created. There are five types of loops JavaScript have: For Loop will run the same code of block again and again repeatedly, for a specific number of time or as long as a certain condition is met. The For loop of JavaScript is similar to C language and Java for Loop. Syntax for (initialization; condition; final expression) { // code to be executed } The for loop is the most concise part of looping. There is three expression use in for Loop initialization, condition, and final expression. Let me show you a simple example of for loop. As you can see in the image that firstly, we initialize the for loop with let i = 0;. Its means that the loop begins with 0. Afterwards, we declared the condition to be i < 4; means that the loop will continue to run as long as i is less than 3. Our last expression is i++, it will increase by 1 each time the loops runs. Output All of these three expressions in for loop are optional. we can write the for statements without initializations. Look at the demonstration for more clarity. // declare variables outside the loop var i = 5; for (; ...

Switch Statement in JavaScript

Switch Statment in JavaScript javascript switch multiple case javascript switch case range javascript switch multiple case javascript switch return javascript switch case multiple expressions switch vs if else performance

Hello friends, I hope you all are doing great. In today’s tutorial, we will have a look at the detailed “ Switch Statement in JavaScript ”. It’s our 6th tutorial in JavaScript Series. As we have learned about the conditional statement and its types (if, if..else, If...else if) in the last article, a conditional statement is the most useful and common feature in the programming language. Switch is also a type of conditional statement and it will evaluate an expression against multiple possible cases and run one or more blocks of codes base on matching cases. The switched statement work almost as if...else if statement containing many blocks, and it does work so more efficiently than repeated if...else if statements. The switch statement is used to perform different action based on multiple cases. How does switch statement work? Syntax switch (expression) { case x: // case x code block (statement x) break; case y: // case y code block (statement y) break; default: // execute default code block (statement default) } As the name says break, When JavaScript reaches the break keyword, it breaks out of the switch block. It will only stop the execution of inside the block. It will continue until reaching the last break case. Eventually, reach the last case and the break keyword will end the switch block. If there is no case match then the default code block will run. There could be only one default keyword in the switch statement. The default keyword is optional, but it is ...

If Else Statement in JavaScript

If else Statement in JavaScript, If else condition in JavaScript,javascript conditional operator, javascript if else shorthand, different conditional statements, javascript if statement multiple conditions, javascript complex if statement, how to add multiple conditions in if statement javascript

Hello everyone, I hope you are having a fine day. In today’s tutorial, I am going to discuss the if-else statement in JavaScript and what are conditional statements in detail. In programming, while writing a program there may be an occasion where you need to adopt one out of a given set of paths. In such a case, you need to use conditional statements that allow your program to make the correct decision. Conditional statements are used to run a specific action based on the result of the different conditions (true or false). If the condition would be true one action would be performed and if the condition is false then another action would be performed. A few examples of JavaScript conditional statements: We have the following conditions in JavaScripts. If statement plays a very important role in JavaScript to make decisions. It will decide whether the statement is true or false and only run if the statement is true. Otherwise, the code block will be ignored if the statement is false. Syntax if (condition) { // block of code that will excute if the condition is true } Note: if is a lowercase letter and If or IF will cause a JavaScript error. A simple example to see how if statement work in javascript. Let’s suppose you are going to pay your electricity bill through an app where you have a certain amount of money already in your account. Your account money is 5000 and you have to pay the electricity bill of 700. Using the <= help you in finding that whether you have less than or ...

Introduction to Bitcoin - A Comprehensive Beginner Guide

what is bitcoin, what is bitcoin mining, what is bitcoin used for, what is bitcoin currency, what is bitcoin trading, what is bitcoin wallet

Hi folks, I hope you guys are doing great. In my previous post, I have discussed what cryptocurrency is. Before I go in detail about Bitcoin, let me tell you. Go and read the last article about cryptocurrency. As you should have information about cryptocurrency before jumping into bitcoin. Bitcoin has become a buzz word now. It’s been around 12 years since Bitcoin release. A person or group of people name Satoshi Nakamoto emerge bitcoins that host a digital currency bitcoin. The individuals who already knew about Bitcoin are curious about it that how is it going to leave an impact on our daily lives in the future. I am here to answer all of your questions and that will clear all your doubts and curiosity. So we are going to cover all these topics down below: Bitcoin has a different importance for different persons. The Bitcoin process is organized and easy to understand. Bitcoin uses peer to peer technology for the transaction of Bitcoins. All of these transferred are tracked on “Blockchain” and known as the giant ledger. This giant ledger saves all the transaction of Bitcoin that ever made. The giant ledger records every transaction and whenever it made. 17 million bitcoins are currently in circulation. No one is yet controlling the supply of bitcoins, that’s means that supply is controlled by design. The total supply of bitcoins that will be ever created is 21 million bitcoins. Before further getting into details about working of bitcoins, if you are not interested in the ...

Introduction to Ethereum (ETH) - Complete Guide For Beginners

what is ethereum, what is ethereum blockchain, features of ethereum, what is eth, what is ethereum mining, what is ethereum used for

If you want to know what is Etherum, then you are in the right place. I am going to tell you in detail about what Ethereum is, and how does it work. There will be also the pros and cons of Ethereum. As I discussed in my previous articles about them with complete guide. That bitcoin was created in 2008 by Satoshi Nakamoto. But no one knows who he is and the interesting thing about bitcoin is that it is decentralized and nobody owns it. There is no COE, CMO, CTO, etc. In it. They are all developers who are working from around the world. So, if you don’t know about them, then start off by reading them. The question that might come up in your mind that what Etherum is and what is the reason behind the existence of Ethereum. Don’t worry, I will explain each and everything in detail down below. You must be aware of the fact that our data are stored on other peoples' computers. Clouds and servers are owned by Amazon, Google, Facebook, etc. Even this single tiny article is stored on some cloud. As we all know that our data on the internet is not safe. There are different authorities who can access our data at any time and they can get our personal data, financial and passwords. The hacker and the government can access your data at any time and can modify it. In short word, they can change or leak and steal your data anytime. People from diverts platforms come outside and said that the internet was meant to be decentralized. That's why blockchain technology emerged to achieve the goal ...

What Is Ripple (XPR) - Everything You Need To Know

What Is Ripple (XPR) - Everything You Need To Know, what is ripple, Where can you buy XRP, Which wallet to save XRP?, Banks Support Ripple, Uses of the Ripple

If you have an interest in cryptocurrency then there is no doubt that you have NOT already heard about Ripple (XPR) or What is Ripplee (XPR). Ripple is not just a cryptocurrency, it is also a platform. Ripple is an open source platform which allows doing cheap and fast transactions. I have put together this complete beginner guide for you. I am going to discuss everything you need to know about Ripple (XPR). Ripple is one of the top five cryptocurrencies and on the top of the list is as usual bitcoin and Ethereum is holding a second position. Ripple is in the third position. We are going to cover every aspect of ripple for you, so have patience and read it till the end. You are going to learn so many new things about Ripple in this article you may have not heard before. For deeper information about Ripple keep reading. The topic I am going to cover are: So, you must be thinking what is Ripple (XPR)? Ripple was founded in 2012 by a San-Francisco Fintech company name Ripple Lab Inc. The aim of this company was to provide instant, secure and affordable transaction platform. Brad is the CEO of Ripple Ripple has built upon the open source an internet protocol. Ripple has an aim to increase the efficiency of the transaction between financial institutions. The word Ripple is most of the time used to refer its digital currency XRP. But they allow other people to use this platform and create their own RippleNet. RippleNet is a network that provides payment to different organisations ...

Types of Bachelor degree

Types of bachelor degree, bachelor degree programs, bachelor degrees offered, BSc degree

Hello Friends! I hope you are doing well. Today, In this tutorial, I am going to cover the topic of " Types of Bachelor degree ". A bachelor’s degree is a three to four-year undergraduate academic degree that usually has to encompass 40 courses or 120-semester credits. In fact, having a bachelor’s degree is the measurement of the standard to get into many professional careers. Therefore, getting a bachelor’s degree will be the ticket to a more promising career. In this post, I'm going to discuss the types of Bachelor degree, popular programs under these types, and their benefits. Further, I have described the top countries offering Bachelor degree programs. Mostly, you cannot start a professional graduate school in law, medicine, or teacher education without a bachelor’s degree. It means you will always need a bachelor’s before joining a master’s program to open the door to even more career chances. Thinking about the different types of bachelor degrees? However, It is very important to know to choose your major area. You have to mention the specific area on your CV and job application. Broadly, the Bachelor's degree is divided into two categories. Let's focus on these types first. A degree in BS is one of the most common types of bachelor's degrees that many universities offer. If you want to choose a science field, this is the right degree for you. The BS degree is less focused on exploration and more focused on the specific concentration. Bachelor of Science students have ...

Introduction to Cryptocurrency - Complete Beginner Guide

Cryptocurrency, crypto, what is cryptocurrency, what is cryptocurrency used for, cryptocurrency list, how is bitcoin created, history of cryptocurrency

Hello friends, I hope you all are doing great. In today's tutorial, we will have a look at a detailed Introduction to Cryptocurrency. You may have heard the term cryptocurrency first time from your friend, family or colleague and you will be confused. What is it? Why would someone need cryptocurrency in their life? They may have told you about it briefly that it is like a dollar or other currency etc. We have decided to publish a series of articles where we will explain cryptocurrency in simple and easy-to-understand language. So let’s walk through this together. I am here to help you and going to explain it in the easiest way that anyone could understand. It is a complete beginner guide for the one who does nothing about cryptocurrency and heard about it first time in their life. Besides, you can check out Dchained to find tons of information about cryptocurrencies and how to work with them. Before we further go into detail. Let me tell you now that maybe there are not many people who do know about cryptocurrency but it is becoming globally phenomenal now. The topics we are going to cover in this article are: The easy answer to this question is: Cryptocurrency is digital money. To secure transactions between mediums, it uses cryptography (cryptography is the skill of encoding code). Crypto means hidden and cryptography means hidden code that no one can understand except the sender and receiver. Cryptography makes transactions secure. The aim of cryptocurrency is to do a ...

Master's Degree

master degree, MS, master degree programs, master degree course content

Hello Friends! I hope you are doing well. Today, In this tutorial, I am going to discuss about Master's degree? A master's degree is an academic degree offered by universities after completing the bachelor's degree. It mainly focuses on the practical practices to complete projects on large scale. Moreover, it requires a bachelor's degree to consider. In this post, I will discuss the types of Master degree, popular Master degree programs, benefits, and their course contents in detail. The master's degree started first in ancient universities in Europe and was considered equal to the doctorate. While the doctorate was first presented for theology, law, and medicine,. And the master's degree was normally given in the liberal arts, and philosophy in Europe, which included all other academic subjects. In the whole master's study, the students are required to know the advanced technology and knowledge of theoretical and applied topics. They must get high-order skills in analysis, professional application, and critical evaluation. They develop the ability to solve complex problems and think deeply and individually. Additionally, a Master’s degree is a viable choice for those who want to study further and enhance their knowledge in a particular subject area, examine other areas of interest. After completing an undergraduate degree (BSc). Do you want to know that a master’s degree is the perfect choice for you or not? Here’s a complete guide for you to know about this degree. The ...

Virtual Private Network (VPN) - All you need to know

VPN, Virtual Private Network, guide for VPN, VPN Guide,Virtual Private Network Guide

You must have heard about the VPN. It's a much common phrase these days. Many teenagers use this service to browse online, stream the content and get the location prohibited services online, but the actual meaning of VPN is a lesser-known fact and why VPN was introduced is rarely known. In this complete guide about VPN, you'll learn everything about the VPN- the intro, history, usage, types and benefits. VPN is pronounced as Virtual Private Network. As its name suggests, VPN is a private network connection that serves the purpose of data sharing, privately, among several connected devices. All the computers, mobiles, laptops and other devices connected through this virtual private network can share the data with secured encryption that cannot be observed by anyone else. That's why it is called a private network. It serves the purpose of security. A typical VPN performs data encryption up to 256 bytes. Data encryption means that your original data is being transmitted into a different complex language that needs to be decrypted for understanding. That's why, when you surf the internet via VPN, all your data log is encrypted and no internet service provider can see the actual data. They just see a connection between a random IP and the VPN server. The encrypted data seems garbage to them. Here's a list of a few best online VPN services: VPN was introduced in 1996 just for the sake of sharing the team data, remotely, via a private network. It made the team eligible to connect ...