KidzTalk

This Elixir code isn't working...

+3 votes
20 views
asked Apr 9 in Technology by 9EclairsAtSchool (1,300 points)
Alright so here is my code:

defmodule Lol do
  def Ha do
    IO.puts "haha"
  end
end
Lol.Ha()

What I'm trying to do is to define a module Lol with function Ha in it. Function Ha should print "haha"

I'm using repl.it

And here is the error

** (SyntaxError) main.exs:9: syntax error before: '('
    (elixir) lib/code.ex:363: Code.require_file/2


Your answer

Your name to display (Optional - DO NOT USE YOUR REAL NAME):
Privacy: Your email address will only be used for sending this notification and will be deleted after it is sent. Login or become a registered user to avoid having to enter your e-mail again and skipping the verification step below.
Anti-spam verification:
To avoid this verification in future, please log in or register.

Related questions

+3 votes
1 answer 18 views
+11 votes
4 answers 159 views
asked Mar 17, 2013 in Technology by reptar (4,550 points)
+9 votes
2 answers 199 views
asked Nov 3, 2017 in Other Contests by meow
+6 votes
1 answer 104 views
asked Nov 23, 2016 in Ask KidzSearch by ilovedogs
+7 votes
3 answers 116 views
+8 votes
1 answer 52 views
asked Oct 25, 2018 in Other by LunaLight (99,730 points)
+16 votes
3 answers 84 views
+9 votes
1 answer 124 views
asked Jan 12, 2017 in Today I Learned... by rae (87,410 points)
+7 votes
1 answer 55 views
+5 votes
4 answers 87 views
asked Sep 17, 2016 in Technology by anonymous
+1 vote
0 answers 13 views
asked Aug 2 in Ask KidzSearch by anonymous
+7 votes
6 answers 173 views
asked May 25, 2017 in Shower Thoughts by Dreamer39
+8 votes
5 answers 150 views
+5 votes
1 answer 35 views
asked Sep 29, 2016 in Other by Girls' Advice Column (1,160 points)
+6 votes
4 answers 79 views
asked Aug 27, 2019 in Non-Fiction by im kanye (373,060 points)
+5 votes
1 answer 215 views
asked Jun 14, 2019 in Debate by fluffykitty101
+7 votes
3 answers 55 views
asked May 2, 2019 in Personal by leo the zodiac king
+7 votes
5 answers 322 views
+6 votes
1 answer 71 views

Recent Badges

Popular Question
Asked question received 100 views
- lunalovegoodmolly -
Popular Question
Asked question received 100 views
- cakelover -
Notable Question
Asked question received 50 views
- Jabber -
Great Question
Question received +8 upvote
- -Moonlight- -
Notable Question
Asked question received 50 views
- lunalovegoodmolly -
...