I am completely stuck

Hi @doodesville

Nop, i had play around with the erc20 smart contract and his different methods, i created a small web interface to simulate an ico. But i don’t have any need to do an Ico eheh so it was just to understand the concept. Do you want to create your own token ?

I’m stuck on writing code on the 1st assignment where we create lists.
my code foe the list looks like this:

  1. Step one
  2. Step two
  3. Step tree
ol { list-style-type: disc; }

On the CCS portion where you list the style property I understand the attribute disc makes a filled circle instead of my list going 1,2,3. How do I properly input disk in the code because I am not sure. Thanks.

1 Like

I think I used < ol > instead of < ul > and got a numbered list instead of bullet points… So I guess I answered my own question.

1 Like

Hello Gabba, I actually want to create an ICO or even a crypto. I have been let down by developers, so now I am trying to gain an understanding by doing the Ivan on Tech academy. I am not sure what route would be most efficient through the courses. Can you suggest a map?
Sometimes I am enjoying this, and sometimes I am finding it a bit of a stretch. I was also looking at building an online game, but again, let down by a developer. Actually finding the course really useful so far, as when I look at related things, I find I am understanding more. I might try to build a test ICO or two before I go onto the key one. D.

Are you a programmer ? If you don’t hqve programming knowledge start with the javascript course.
Then go directly to ETH 101 and 201 courses. You will have everything you need to do an ICO.

To build your own blockchain (I am not sure it worth it today, because there is already a lot of them and a lot of use case) you will have to learn c++, there is nice python tutorial online teaching you how to make your own really basic blockchain in python. I think Ivan also did a video about building one in javascript.

Do you have a specific concept you want to develop with this ICO ? An ICO is mainly a way to raise funds to build your project so you need a solid idea to get investor. Maybe look at the blockchain business course if you want to setup a solid project.

Try to post on the forum maybe you will find people to team up with :slight_smile:

2 Likes

@filip Hey there guys how are you IM STUCK on one thing !
PLEASE HELP ME .

i get an ERROR ,thanks to all who will help!
web3.min.js:1 Uncaught Error: invalid number value (arg=“age”, coderType=“uint256”, value=undefined)

//MAIN.JS @filip
var web3=new Web3(Web3.givenProvider);
var contractInstance;

$(document).ready(function(){
window.ethereum.enable().then(function(accounts){
contractInstance=new web3.eth.Contract(abi,“0x1ADeA2144acd6Cbb4fa7c6baa03a30a216576829”,{from:accounts[0]});
});
$("#add_data_button").click(inputData);
});

function inputData(){
var name=$("#name_input").val();
var age=$(“age_input”).val();
var height=$(“height_input”).val();

var config={
value:web3.utils.toWei(“1”,“ether”)
}
contractInstance.methods.createPerson(name,age,height).send(config);
}

1 Like

Your selector for age input and height input are probably wrong. If the HTML element has the ID age_input, you need to write $("#age_input") in jquery.

I’m not sure if it disappeared when you pasted your code here. But you always need to have the $ sign before your jquery functions. Like $("#name_input").

2 Likes

Hey I am lesson 17 loops in Javascript.

I cant get my javascript code excuted, I dont understand why it only my H1 tag showing in my browser? sorry i am still brand new!

1 Like

hey guys!
I was playing around on atom and I couldn’t quite understand why I couldnt get this to work…

var b = 2;
var d = 4;
var dude = (d + b);

while (dude < 100) {
  document.write("<h3>Check it out " + (d + b) + " , now we're moving.</h3>");
  console.log("loop1");  
  b=(b+2);
  if (dude>90) {
    document.write("<h4>Woah slow it down sparky... " + (d + b) + "</h4>");
    console.log("loop2");
    b=(d-1);
  }
}

please advise,
ML

Edit. @ivga80 ( Hi, I inserted the missing “;” and you had forgotten the curly brackets { } in your if statement. But this "while! loop is an infinity loop, and will crash your browser. )

1 Like

Hi,
Can you post the code next time? It’s easier for us to test it and edit the code.

The issue is line 16. The header has to be inside the "</h2>". See the example below.
document.write("<h2>tester" + 2 + " " + "hello" + "</h2>");

I hope this helps you. :wink:

Ivo

1 Like

why do you reply to my question with another question? :slight_smile:

thank you so much, and next time i will post the code :slight_smile:

1 Like

Was it right? Did it fix the issue?

Ivo

1 Like

Yes it fixed the issue, thanks a lot champ… But now I am stucked in While loops, Its not like i dont undrstand while loop and the different from for loop, but once again my Javascript code do not show up in the browser. I know its probaly just a single little type o.

<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
    <meta charset="utf-8">
    <title></title>
</head>
  <body>

    <h1> This is the Titel</h1>

    <script type="text/javascript">

       var textToShow = "hello";

       var counter = 0;

       var shouldContinue = true;

       while(shouldContinue){
         document.write("<h1>Another loop iteration</h1>");
         document.write("<h2> Counter is now " + counter + " " + textToShow + "</h2>");
         counter+=4;

         if(counter>500){
           shouldContinue = false;
         }

      }

          // While loop we dont know the excact count of leaving the loop
          // like we dont know when the user presses the mouse
          // For loop we now when we reach ex 100 we quit the loop//


   </script>

  </body>
</html>
1 Like

You were missing the + between the textToShow and "</h2>");

I don’t know if that solves it, but could you give it a try now?

Ivo

.send() make me have a transaction ,but the return of this function randomnumber() how can i have it value what is or 0 or 1 ? [closed]

.send() make me have a transaction ,but the return of this function randomnumber() how can i have it ?
await contractInstance.methods.randomnumber().send(config).then(function(){
random();

});
var config={value:web3.utils.toWei(“1”,“ether”)}
Apreciate very much for help ,i dont find anythere this :frowning:

Oh haha sorry Jacob, just starting to get used to using this forum. :wink:

arrrrrgggg! I can’t seem to get this to work… what do you think?
Trying to link that button to the input text…

<h1>My favorite things about Apples</h1>
<ol id="appleList">
  </ol>


<button id="appleButton">Add your favorite</button>
<input id="theInput" type="text" value="">

<script>

  var apple=["Sweet", "Crunchy", "Snack"];
  var list=$("#appleList");
  var appleFav=$("#theInput").value;


          $.each(apple,function(index,value){
              var listItem =$("<li/>").text(value).appendTo(list);
          });


          $("#appleButton").click(function(){
                  $("<li/>").text(appleFav).appendTo(list)
          });

Hi, Is this for the solidity CoinToss project 1? You should try @gabba, he is the goto champion for that topic. :wink:

Good luck my friend.

Ivo