---
title: "Discussion on \"Javascript Algorithm: Power of Three\" | Hashnode"
description: "Discussion on \"Javascript Algorithm: Power of Three\". The function takes an integer n as input and returns true if n is a power of three, and false otherwise.\nTo determine if an integer is a power of three, we can use the logarithmic property of the base-3 logarithm. If n is a power of three, then log3(..."
url: "https://hashnode.com/posts/javascript-algorithm-power-of-three/641c471995cfe07be06ccf69"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Javascript Algorithm: Power of Three](https://josephwamiti.hashnode.dev/javascript-algorithm-power-of-three?utm_source=hashnode&utm_medium=feed)

The function takes an integer n as input and returns true if n is a power of three, and false otherwise. To determine if an integer is a power of three, we can use the logarithmic property of the base-3 logarithm. If n is a power of three, then log3(...

Mar 23, 2023 · 2 min read · josephwamiti.hashnode.dev  
Read the article

## Written by

[Mugo Joseph Wamiti](https://hashnode.com/@Jowamu)

@Jowamu · Nairobi, Kenya

  
[View profile](https://hashnode.com/@Jowamu)

Back-End Developer

I am a passionate Full Stack Web Developer currently pursuing software engineering at Moringa School, I have a proficient understanding of web markup, including HTML5, and CSS3, a professional understanding of client-side scripting, Vanilla JavaScript, Reactjs, and currently learning Ruby and Ruby on Rails. I have a good understanding of asynchronous request handling, AJAX, a good understanding of cross-browser compatibility issues, and proficient understanding of Git (version control)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
