Questions tagged [app-lab]

App Lab is a visual programming environment where you can make simple apps. Design an app, code in JavaScript with either blocks or text, then share your app.

32 questions
1
vote
0 answers

Why does my trivia app on code.org pause on event china button?

My trivia app on code.org it keeps pausing on event china button. Why? Someone else in my class had similar code for the button and no error is showing up in the debug console. the way it is pausing is also how you pause the program in the debug…
chxir
  • 11
  • 1
1
vote
1 answer

How do you decipher the rail fence cipher with a simple method for beginners?

Here's the code for the encryption. First every second letter is set and then every other letter(input: abcdefgh; output: acegdfh). I can't figure out the decryption. I figured, seperating the encrypted text in two and alternately taking a letter…
user16157606
1
vote
1 answer

continuous user input in applab?

So I am working on an app on code.org that takes the users subject score, tells him what grade he has and in the end gives him the average score on all subjects. But the problem is that I am limited to (in my case) 4 subjects only, since for the…
1
vote
0 answers

How do you create collision in code.org applab

Im trying to create a maze app/game using app lab in code.org https://studio.code.org/projects/applab/rrV1fA5_uefcGGyrDYnznALkqxdWbjXbmI7nneft2Bg This is my current project but i dont know how to set the character for the player and I also want to…
1
vote
0 answers

How do I resolve code.org's App Lab readRecord() asynchronous timing?

I'm a fairly new student in AP CSP, and I wanted to create a username/password system in code.org's App Lab, however, it requires me to get the readRecords() command to function first. I have the code as such : function read (array) { var truth; …
1
vote
1 answer

How do I get my full array to print after putting it in a loop to add 5 to all of my values?

I just started learning arrays in school today and I am trying to add 5 to all of my values in my array. In the console log all of the values are being added with 5 but then when it come to printing the values outside the loop in the console log it…
catpat4
  • 19
  • 1
  • 6
1
vote
1 answer

How do I restart variables in javascript so when I press the playAgainBtn button the game will restart all the variables so the game restarts?

I am trying to reset the variables in my code which is javascript so when I press the playAgainBtn button it will restart my variables. Right now when I press the playAgainBtn the game continues using the same values for the variables. The code can…
catpat4
  • 19
  • 1
  • 6
0
votes
1 answer

Trying to code a game of Tic-Tac-Toe using javascript. What would be the best way to have the computer decide were to play?

I am using the code.org AppLab, and trying to make a game of Tic-Tac-Toe. Currently I have it so the computer will randomly choose a location from the available places, but I am trying to make it more difficult. What would be the best way to have…
0
votes
0 answers

Having issues with traversals in an App-lab School Project. How do I get an input value to pull up values related to it?

So, I don't exactly know how to put it, but I'm working on the "Create Task" in App Lab on Code.org for a CSP project. The app is based around building molecules, and the input I'm talking about is chemical formulas. The input is meant to connect to…
X-man
  • 1
  • 2
0
votes
0 answers

How do I make my AppLab app send notifications to the device?

I am trying to create a daily reminder app that sends your device a daily notification with your custom reminder. However, I have not been able to figure out how to send notifications with AppLab. I searched it up in the documentation, and there…
wbohrer28
  • 1
  • 4
0
votes
1 answer

How to display the title of a data column in code.org app lab?

Does anyone know how to do this? I have tried everything I could think of in terms of how it could be stored as a variable, but I don't know what to do.
0
votes
1 answer

Is it possible to check for null value in a text box in applab?

I am making an app in Applab. I made a login page but the create id button works even if there is no value or text in the text box. I wanted to make it the way that if the user clicks the create id button he would not be redirected to the next but a…
Arth
  • 1
  • 1
0
votes
1 answer

AppLab error e.replace is not a function when reading from data set

function Checkout(Payment_Type, Tip_Amt){ var Cust_Order = []; readRecords(Order_Data,{},function(Rec){ for (var i = 0; i < Rec.length; i++) { appendItem(Cust_Order, Rec[i].Table); appendItem(Cust_Order,…
0
votes
1 answer

App Lab's readRecords() changes elements' ids

I'm making a fairytale in AppLab. I used a database that I called "story", which contains story events and whether the game started (I didn't make the game yet). Anyway, I have to readRecords() events from the database, and create a textLabel in the…
Cerdipinki
  • 82
  • 6
0
votes
1 answer

How do I get HTML of an object in App Lab?

I'm using Code.org's App Lab to make a chatroom, and the chat messages are shown using the innerHTML() function. However, there doesn't seem to be a way to get the inner HTML of an object. I've tried assigning the HTML to a variable, such as html,…
wutadam
  • 73
  • 7
1
2 3