What does _ mean in solidity language?

0 votes

There are so many programs which use the _ symbol and I don’t understand why it’s used.

Ex:

modifier onlyOwner {

    if(msg.sender != owner) throw;

    _;

} 

Can someone tell?

Aug 10, 2018 in Blockchain by slayer
• 29,040 points
24 views

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
0 votes

The _ symbol is a place holder. It is used to mentioned the place where you can include the function.

To know more on Solidity codes, visit: https://www.bitdegree.org/learn/solidity-function-modifiers/

answered Aug 10, 2018 by digger
• 27,620 points

Related Questions In Blockchain

+1 vote
4 answers

What role does Orderer peer serves in Hyperledger Fabric??

Shared communication channel to clients and peers ...READ MORE

answered Apr 11, 2018 in Blockchain by Johnathon
• 9,050 points
544 views
+1 vote
1 answer

What is the difference between if() and require() statement in solidity??

If() and require() have separate functions and ...READ MORE

answered Apr 18, 2018 in Blockchain by Shashank
• 10,330 points
225 views
+1 vote
1 answer

what is use of msg.sender in solidity code?

msg.sender(address) function indicated the sender of the ...READ MORE

answered Apr 24, 2018 in Blockchain by Shashank
• 10,330 points
223 views
0 votes
1 answer

What does "Using network 'develop'" mean?

It means that the name of the ...READ MORE

answered Jul 17, 2018 in Blockchain by slayer
• 29,040 points
22 views
0 votes
1 answer

Truffle tests not running after truffle init

This was a bug. They've fixed it. ...READ MORE

answered Sep 11, 2018 in Blockchain by Christine
• 15,790 points
65 views
+1 vote
3 answers

Removing double quotes from a string from JSON response in PHP

Just remove the json_encode call, and it should work: $resp ...READ MORE

answered Sep 12, 2018 in Blockchain by digger
• 27,620 points
1,551 views
0 votes
1 answer
+1 vote
1 answer

What problem does pow(proof of work) solves in blockchain?

Proof of Work: When a miner gets a ...READ MORE

answered Aug 6, 2018 in Blockchain by digger
• 27,620 points
31 views
+1 vote
3 answers

What is the pattern for handling throw on a Solidity contract in tests

In my opinion the cleanest way is: it("should ...READ MORE

answered Sep 25, 2018 in Blockchain by Lupin
77 views

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.