Skip to content

IslandTropicaMan

Software, Pc Game and Programming Languages

Javascript example to chain Promise objects

Posted on December 9, 2022December 9, 2022 By IslandT

When a javascript Promise object has been fulfilled the function within the then method of that Promise object will get invoked. The below example uses a promise object chain to make the array of elements multiply by themselves and only return those elements that are greater or equal to 16. As you might have guessed…

Read More “Javascript example to chain Promise objects” »

Javascript

How to create three buttons on JFrame object

Posted on December 8, 2022December 8, 2022 By IslandT

In this Java example let us create three buttons on a Swing object. Besides JavaFx, Swing is still widely used by Java developer nowadays to develop Java programs thus it is still views as a very important module that is used to create a user interface for the Java program. Below is the entire program…

Read More “How to create three buttons on JFrame object” »

Swing

How does the function prototype works in C program?

Posted on December 8, 2022 By IslandT

In the C program if a function is called before it has been declared then the program will generate an error because all the functions within a C program will need to get declared first before they can be called. A C programmer can either create that entire function at the top of the caller…

Read More “How does the function prototype works in C program?” »

C program

Javascript example to create a Promise object

Posted on December 7, 2022 By IslandT

The below Javascript example will create a Promise object which will pass the revised data of an array in another array object to the function in the then method of that promise if the promise has been resolved or else will pass the error message to the function in the catch method of that promise…

Read More “Javascript example to create a Promise object” »

Javascript

Javascript example to use the map method

Posted on December 6, 2022 By IslandT

The below Javascript map method example will print out each number in an array after each number within that array has been multiplied by itself. The numbers in the data array remain unchanged because the map method will only generate another array and assigned it to the data_revise variable. The outcome is as follows:- Which…

Read More “Javascript example to use the map method” »

Javascript

Drawing lines with the pygame.gfxdraw module

Posted on December 5, 2022December 5, 2022 By IslandT

Apart from the draw module, pygame has another drawing module which is the gfxdraw module and this time we will use this module to draw lines on the screen. Here is a program that will draw three lines using the three different line-drawing functions of gfxdraw! We use pygame.gfxdraw.line, pygame.gfxdraw.hline and pygame.gfxdraw.vline to paint three…

Read More “Drawing lines with the pygame.gfxdraw module” »

Gaming

Class inheritance in TypeScript

Posted on November 29, 2022 By IslandT

In this TypeScript class inheritance example, I am going to create a subclass that inherits from the main base class as follows:- 1) Create the interface which will be implemented by the Computer class. Create the Computer main class which implements the above interface. At last, create the subclass which inherits the base class. Next,…

Read More “Class inheritance in TypeScript” »

Type-Script

Create a password verifier with the get and set property accessors in TypeScript

Posted on November 21, 2022November 21, 2022 By IslandT

Below is an example of creating a TypeScript’s password verifier with the help of the get and the set property accessors of TypeScript. This program will allow the user to set the password and then get the password again to verify it before printing the outcome accordingly. The property accessors look like a property of…

Read More “Create a password verifier with the get and set property accessors in TypeScript” »

Type-Script

ProCal Homepage

Posted on November 13, 2022November 14, 2022 By IslandT
ProCal Homepage

This application which is used to calculate various financial problems is free to use on GitHub and you can download the code through this link. You can use the executable file to start the application once it is up there. The application has been updated to the Tkinter version instead of using wxPython because after…

Read More “ProCal Homepage” »

Python, Python Tutorial

Command to print 1 to 30 in PowerShell

Posted on November 10, 2022 By IslandT

The below command will print 1 to 30 in PowerShell using the ForEach-Object cmdlet which will print the numbers one at a time. The outcome is as follows:

Power Shell

Posts pagination

Previous 1 … 3 4 5 … 16 Next

IslandTropicaMan

↑ Grab this Headline Animator

Categories

  • C program
  • Gaming
  • Java
  • Java Collection
  • Java Game
  • Java Generic
  • Javascript
  • Kotlin
  • Power Shell
  • Python
  • Python Tutorial
  • Software
  • Swing
  • Type-Script

Get new posts by email

ArrayList button class combo box earning project enum for loop function interface Java javascript Javascript Iterable javascript iteration result object Javascript iterator Javascript promise kotlin Matplotlib message box Multitask power shell powershell powershell switch pycharm pygame pygame drawing pygame moving circle pygame project chess pygame rectangles pygame update method python python application python class python function python project python tutorial ShotCut.software Stockfish Swing tkinter tuple typescript typescript function visual studio code while loop wxPython

  • How to use case sensitive version of comparison in power shell
  • Create multiple assignments in PowerShell
  • How to compile and run c program in visual studio code
  • How to print numbers from a range in Kotlin
  • How to output words on a Power Shell screen?

Recent Comments

  1. Rainer on Python Example – Group telephone number using the re module
  2. Rainer Mansfeld on Python Example — Write a python program which will save the user inputs into a Pickle file
  3. Rainer Mansfeld on Python Example — Write a Python program to find the permutation of an event
  4. Rainer Mansfeld on Python Example — What is the total ASCII values of characters in the Hello World string
  5. Jules on Python Tutorial — Chapter 9

Copyright © 2025 IslandTropicaMan.

Powered by PressBook WordPress theme

We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept”, you consent to the use of ALL the cookies.
Do not sell my personal information.
Cookie SettingsAccept
Manage consent

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
CookieDurationDescription
cookielawinfo-checkbox-analytics11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
cookielawinfo-checkbox-functional11 monthsThe cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
cookielawinfo-checkbox-necessary11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
cookielawinfo-checkbox-others11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.
cookielawinfo-checkbox-performance11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".
viewed_cookie_policy11 monthsThe cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
Functional
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Performance
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Analytics
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
Advertisement
Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.
Others
Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet.
SAVE & ACCEPT