Javascript

How to make Chessboard using Javascript?

Problem: Write a program that creates a string that represents an 8×8 grid, using newline characters to separate lines. At each position of the grid there is either a space or a “#” character. The characters should form a chessboard….

How to make a triangle using a loop in Javascript?

Problem comes from https://eloquentjavascript.net/02_program_structure.html: Looping a triangle Write a loop that makes seven calls to console.log to output the following triangle: # ## ### #### ##### ###### ####### It may be useful to know that you can find the length of a…

How javascript language works?

JavaScript is a programming language that is widely used to add interactivity and other dynamic elements to web pages. But how exactly does it work? In this blog post, we’ll take a closer look at the JavaScript language and how…

Linear Search vs Binary Search in Javascript | Algorithms

I am waiting for this moment for a long time and I am glad that eventually, I can write this post. I started to learn Algorithms some time ago, but until now I decided to put my knowledge here not…