Where do I run functions/queries from?

Hi @nalatine1 , you first need to enable the developer tools.
I got " Turn off Dev Mode " since I already enabled mine, yours will be " Turn on Dev Mode ".

A bar on the bottom of the page will appear, click on of the arrow buttons on the right side of the bar to open the code section partially or completely.

You’ll find two section, one is " Page " for the current page, where you write a code for that specific page, and the other is the " Site " section where you write codes that run on each and every page of the site.

Hope that helped!
Ahmad

Got it.

I have it turned on. - that’s done.
I’ve pasted the function in the page section.

Is there a way to see test results without publishing the website every time?

Yes, you can use the command console.log() to log anything to the console, then hit the " Preview " button on the right-top bar.

For example, you have a function that returns a value of multiplying two numbers, you can log its returned value like this:

// This is the function
function multiply(x, y) {
    return x * y;
}

// You want to see the result of calling that function on 5 and 6

console.log(multiply(5, 6); // Expected result: 30

Hope that helped!
Ahmad

Thank you. Let me try that!

That worked, thank you Ahmad!

What did work?
Anyway, you’re welcome :blush: