My Blog

My WordPress Blog

My Blog

My WordPress Blog

Month: January 2024

JavaScript Switch…Case Statements

Using the Switch…Case Statement The switch..case statement is an alternative to the if…else if…else statement, which does almost the same thing. The switch…case statement tests a variable or expression against a series of values until it finds a match, and then executes the block of code corresponding to that match. It’s syntax is: switch(x){case value1:        // Code to be executed if x === […]

JavaScript If…Else Statements

JavaScript Conditional Statements Like many other programming languages, JavaScript also allows you to write code that perform different actions based on the results of a logical or comparative test conditions at run time. This means, you can create test conditions in the form of expressions that evaluates to either true or false and based on these results you can […]

JavaScript Numbers

Working with Numbers JavaScript supports both integer and floating-point numbers that can be represented in decimal, hexadecimal or octal notation. Unlike other languages, JavaScript does not treat integer and floating-point numbers differently. All numbers in JavaScript are represented as floating-point numbers. Here’s an example demonstrating the numbers in different formats: Example Extra large numbers can […]

Scroll to top